Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp610092lqp; Thu, 21 Mar 2024 10:07:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi/6WKU4bBVdSD8iWz3VN416Du4QrZXXOJF9J5bwep8g4gxPwUWR1eJQXHaAKH1S+1TbcpysTo1hdYh+o0+R3xzMkKeR5wfygDTx8hUA== X-Google-Smtp-Source: AGHT+IEoAr+16M7AT6yn5hsUeChUWVfIjMJk8tg677S3N2HdKpFQFmYAdEOSTk5MULMXpO5SRBGq X-Received: by 2002:a05:620a:57d8:b0:787:ea8a:d048 with SMTP id wl24-20020a05620a57d800b00787ea8ad048mr5624427qkn.46.1711040877846; Thu, 21 Mar 2024 10:07:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711040877; cv=pass; d=google.com; s=arc-20160816; b=m+vpt6SrQRiYvWWx3mSCtwqtSLPxo+qgmQK8DNM++7FizLMwiIo/EIkpB1lzMCWyc3 xN3fVQaIgo6+RAKviKVaNthjyhy+Ou5+aHqlRqwX6axfKvTRAgPY4ObbkspwVBlt7iNE cfHmGcJlh+AKoXue1PbTh1sjFb2TOK18GHk7yxhaZS/1hzYbx3xIRQz95YvVzHBac6W1 Az4KyjvNOXeyRccOo76I1EiedtV4Wa4MbjyPtpul6As2JovvPxrjtB/q3/80lFXm2rxg P+o5baKWDyhPGJTRjY6Is3J6zeZUR4r08sp+v9VoFMReWG+Hv5/c5ptcKGM2KheY96VE 40KQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=z2V2t8q647P9dxPXGp/85hX3c/BQolF0TILOXB45bBw=; fh=c3pZVB4aqzyFBMPmzWCSF5Tv5sFO69/gYfFo1DSoMyw=; b=EnwIy/DuMrsceclnW7kGR3xxiAlnNilVOor0XvvJBpNyPGip/E8xhEAR9ftKM/49or Q7mXmcJWfATIzDIvlsJCB76AeOOQXJCJztqhmPoe67Cgst4ZYJIUxWIreDDqnfsiFPDk 3s/O7iAbgqkueqdB/Icusq6dojG0kzut+7YrF5CtYMgHd64KEtZxzxsBMYtIp4SDxwZ9 kfW9eYuuVBIdDffxbEEIJFBf+SS2Ice2Ak3ZJYGUjT+iB8l8khVYhCxrlrDZ+7UbVvqo ft3N6nZOb4pMQyQSrPgDoNeKoERkvKa2bnommLv7EfjNGQntVYV6BaVxue9A9vbbEFfV yJ7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UMwDauTB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-110454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o19-20020a05620a2a1300b00789efd07898si156070qkp.322.2024.03.21.10.07.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:07:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UMwDauTB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-110454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AA2881C23B3B for ; Thu, 21 Mar 2024 17:07:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CC1D134759; Thu, 21 Mar 2024 16:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UMwDauTB" Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11F8B9468; Thu, 21 Mar 2024 16:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711040215; cv=none; b=oIkVKuFxQEzphCQR5JhJBCNKU5znbLv47LlEnJVedgGBKdwHWEO9iLqPfemQxpG4P4w8DbEkVKqYavvFwsZCE0bpelS9T/ll6SdEQhBOvrzTBcCMpsa11+Ck1s4Yy0/3uovzpgH2dY4NA42n13gt95lKNy7+KcNEMq8FqIf+Tbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711040215; c=relaxed/simple; bh=z2V2t8q647P9dxPXGp/85hX3c/BQolF0TILOXB45bBw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=i9++p+tOgWjSweybI8F0W9QCCfMfCN9k+1ZE7tC4eOAEEyYwXvcBHqBvm48xAI1YcV3aiP/a3hp/iTVHjbT79TvWF4epYVRAEY2jsZI3TE94P1jmgCO8AQsBCGdHy2f87hjie/c9LZHVykQ1wQXPoFyFAqSqBy0a5f24DOThAsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UMwDauTB; arc=none smtp.client-ip=209.85.160.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-2297d0d6013so730728fac.0; Thu, 21 Mar 2024 09:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711040213; x=1711645013; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=z2V2t8q647P9dxPXGp/85hX3c/BQolF0TILOXB45bBw=; b=UMwDauTBkjaoHUHYzpmCpKOq+b1qBIs++JEe7Z3KfHjbIUc+mNj5Fo7YmN+hFJvvNE Ns2umE+S9wJ+NA4NZnMzVKoXVo50h5NOpF5UG2imCtemF5yfeqdfwpe23iBenPDkOlww CIXv3NObMnvMGLDhQ+WiBmTel4TJxThC4keaMxHf0mtutpA2Hn3viIEu6gzBuW4zejlu 6b1QxeO5l5whqa2OGyzqss1s5b8TctaU3yly59q67EgKs/QCTmHpz2kOlFEkV26USZhN kq15w2QZfshrWvTqx+KoG+RJGhhqwnMZ6ECc4SKcdQME8xLvFx2m3rv+UlFXJq4K6SUO etFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711040213; x=1711645013; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z2V2t8q647P9dxPXGp/85hX3c/BQolF0TILOXB45bBw=; b=VQmz09DtYJ3JwzAa9HqQVgzcirnPUjACkCVHWiIG8R10vBu2GnpG9yd7LpY0x+s1P/ ReL8YcxDT54NTFO57yIF/Y5Uza/ktD3Y8/BO/+vXGfXGP2o/RKhbrpcl9prXqh/6G4+q TRh+/1oOI09MC58drj6gTSvmGc6hWALfDH/L+Zn9xtklZcaEnFodrMdsoIkg/NoWoZTM 6rG2VFQCPReTVQmLZlYsveGjMcAURJlbi186Xq7NiRGbfrgZvzsFLsMC5C1fmMzzNfOo RCNTDvpqlSlBYNZp6DTh/WBDjM2cPA4FJsVj+Jn0L9kZtn2kZtzjT/AG2eSBLAvEX9c4 OzHQ== X-Forwarded-Encrypted: i=1; AJvYcCWAXxKfn1hQPzxsnMtz25jlT2wj38oxo3kilCCljHzRJZnTNhc+2H7KYIbmDoQeY0z5Jfq+AxLdEhVmd5jXtD/8sIaNIKupaZ14ruwT7x5saM35PVfL/K6aGTbKyYGsinijFPaawwxq X-Gm-Message-State: AOJu0Yw8DFStYtUocxE5ojfEjMTTnYhD5ucfawUFhEv9Z2RpXejnfXPS g5ADBDCSG+qFVm/dp1qg2WRCvLAqN8BwrMP2+Iz+FU2UzAe6NnnNrUaFhvPjqKVLKjGiCXAMkUI HHhBj8cCeV2hmAomLMo92GpePxio= X-Received: by 2002:a05:6870:160a:b0:221:c8a9:563d with SMTP id b10-20020a056870160a00b00221c8a9563dmr6161587oae.3.1711040212964; Thu, 21 Mar 2024 09:56:52 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240301141800.30218-1-lukas.bulwahn@gmail.com> <41f28393-0211-4448-8add-ad3c55d02210@oracle.com> In-Reply-To: From: Donald Hunter Date: Thu, 21 Mar 2024 16:56:41 +0000 Message-ID: Subject: Re: [PATCH v2] docs: drop the version constraints for sphinx and dependencies To: Vegard Nossum Cc: Lukas Bulwahn , Jonathan Corbet , Mauro Carvalho Chehab , Akira Yokosawa , Jani Nikula , Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 19 Mar 2024 at 17:59, Donald Hunter wrote: > > > > > I have an experimental fix that uses a dict for lookups. With the fix, I > > > > consistently get times in the sub 5 minute range: > > > > > > Fantastic! > > I pushed my performance changes to GitHub if you want to try them out: > > https://github.com/donaldh/sphinx/tree/c-domain-speedup Now a PR: https://github.com/sphinx-doc/sphinx/pull/12162 Following up on the incremental build performance, I have been experimenting with different batch sizes when building the Linux kernel docs. My results suggest that the best performance is achieved by using a minimum batch size of 200 for reads because batches smaller than that have too high a merge overhead back into the main process. I also experimented with a minimum threshold of 500 before even splitting into batches, i.e. if there are less than 500 changed docs then just process them serially. With the existing make_chunks behaviour, a small number of changed docs gives worst case behaviour of 1 doc per chunk. Merging single docs back into the main process destroys any benefit from the parallel processing. E.g. running make htmldocs SPHINXOPTS=-j12 Running Sphinx v7.2.6 [...] building [html]: targets for 3445 source files that are out of date updating environment: [new config] 3445 added, 0 changed, 0 removed [...] real 7m46.198s user 14m18.597s sys 0m54.925s for a full build of 3445 files vs an incremental build of just 114 files: Running Sphinx v7.2.6 [...] building [html]: targets for 114 source files that are out of date updating environment: 0 added, 114 changed, 0 removed real 5m50.746s user 6m33.199s sys 0m13.034s When I run the incremental build serially with make htmldocs SPHINXOPTS=-j1 then it is much faster: building [html]: targets for 114 source files that are out of date updating environment: 0 added, 114 changed, 0 removed real 1m5.034s user 1m3.183s sys 0m1.616s