Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6734704ybp; Tue, 15 Oct 2019 20:55:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9kht9wacrt94YOm0zyU5CaseH9SukC9IGsTxtlQcU8NFcb3SaumoACC/cPE+m6eB8LKt1 X-Received: by 2002:a05:6402:13cc:: with SMTP id a12mr16186775edx.162.1571198103462; Tue, 15 Oct 2019 20:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571198103; cv=none; d=google.com; s=arc-20160816; b=HcMqXLAvx5OWVMILRfw4yaIFvXN3W/XCTp1hjA+9wE6jwlLwmFXaMBomjt14r0rcio 4epFrekBCTS0peHJV6L9TahRlyILh69eyMrueRfsMUbm7MoymEUhG0javZC2h7VOqGOn Di8NyWIACqWjJ0TM2F6UylU83MfUfOeo1s2+nVQTRwAueLCPxjGeyrw+8Y3UPgoxqa/w zKtGfkVZp/tGqx9Fl5c01PSOQVp2cVBH1WOkbbnoD1s3GlTvQVooAw2X3q1GJjzgz6eE 8OxWsWLcazlP/XvxtAsxO0Lkpl2EQflrXtaeVV5i5Kud7t1MNLrUb0sUJb6lGsu7Hl/G +vMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=oDe3m4rQhSeY+085wHNREg/SXUE2bSEKEEx664Jg5w8=; b=RHomP9SHvuCZWvqWRc+QlkiN9reNP4Eg7Mi32EceQ4lO8YlmnTbJG2PE4ywqrcIt7u 2+PZtqnf7PiY5rqLSbDtG81VMQ97RhQ2ZpDl+w5mbntuZHtWE6bIRhXsRtZgQm9yrG89 Y5O9N/m50HlmNtooPVq6+3/G6aAFF42juSRBEIST5xdKAMV+PLFhkF0IIVs97WRDLSBU HXrLZLzWY4YVhGaKhDwjfhpsD24FoRZI6jqh1LN58pCwaDb9hRcB3PSI9Sl/pZSRiW1a jQ8CgPlkSMIRbJCbx+DAN/ztgNn+118r/TYeP3DRC/SePf3/UtjmOI7QHFbq4qA0yke9 VfVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=QlVkZKTU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p36si15565381edc.373.2019.10.15.20.54.40; Tue, 15 Oct 2019 20:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=QlVkZKTU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388316AbfJOUzP (ORCPT + 99 others); Tue, 15 Oct 2019 16:55:15 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44937 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbfJOUzP (ORCPT ); Tue, 15 Oct 2019 16:55:15 -0400 Received: by mail-ed1-f68.google.com with SMTP id r16so19367987edq.11 for ; Tue, 15 Oct 2019 13:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oDe3m4rQhSeY+085wHNREg/SXUE2bSEKEEx664Jg5w8=; b=QlVkZKTUMDSSzBGZhSI9NF6G0+3XMbJ6J2iynj+OS6O4zXcFlL3S4E5MaYJDcauxZk FgTdM3r8hZSgOz96TSowUnqL/VC7mMRck7BQaJC5Ima8iDx+OJfwSo2bdkwUeIMUK9Mh XedO9xP0CggVE6s6ltyVqWYIq4ePbRiXxCmhY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oDe3m4rQhSeY+085wHNREg/SXUE2bSEKEEx664Jg5w8=; b=t2QV/yiQfp1JmMYdnFC/wV03y82RjcorCk5lMOwKIci9TJxUZXcPSaRODCLL/Gc649 6W8KYfxXNoq8cRjR9qxgPXii05Sl7flrGlajoPmoQYXv2G1k65Gqh1e5izy+xAQ9Msnl 2ciiNj814dK16tGZNu+hKARIpxExoDi3NQ3NXx1JCv/dw3KLgm1xBIDOa4hKyXBKDKzZ sBIPvCTNVJZoe/DQAUEXGj9nMtWCIzf76qIYl14IU4+8lrXNRuF2iy38fgIT00OYhohu eaPr/EBa+PSbrPK/h9mkZEMCK4/WNb9NTc0Sbmk1FdWIjn0+ultUhN0HR3bORchgfXN6 tdUw== X-Gm-Message-State: APjAAAVtHD2oKRThufIaBWXz5AYQt2Gv4L2TjKIsqs/YHWmRt3uG0Azr RysZ6j+fkq/lxzQo6e/QiSCtMfDI8/8Tysc0 X-Received: by 2002:a17:906:6094:: with SMTP id t20mr36753160ejj.316.1571172913188; Tue, 15 Oct 2019 13:55:13 -0700 (PDT) Received: from [192.168.1.149] (ip-5-186-115-54.cgn.fibianet.dk. [5.186.115.54]) by smtp.gmail.com with ESMTPSA id gl4sm2871268ejb.6.2019.10.15.13.55.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 13:55:12 -0700 (PDT) Subject: Re: [PATCH v3] docs: Use make invocation's -j argument for parallelism To: Kees Cook Cc: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <201909241627.CEA19509@keescook> <201910040904.43B61E4@keescook> From: Rasmus Villemoes Message-ID: <44c01043-ab24-b4de-6544-e8efd153e27a@rasmusvillemoes.dk> Date: Tue, 15 Oct 2019 22:55:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/10/2019 21.33, Rasmus Villemoes wrote: > On 04/10/2019 18.08, Kees Cook wrote: >> The best solution would be to teach sphinx-build about the Make >> jobserver, though I expect that would be weird. Another idea would be to >> hold the reservation until sphinx-build finishes and THEN return the >> slots? That would likely need to change from a utility to a sphinx-build >> wrapper... > > Yes, a more general solution would be some kind of generic wrapper that > would hog however many tokens it could get hold of and run a given > command with a commandline slightly modified to hand over those tokens - > then wait for that process to exit and give back the tokens. That would > work for any command that knows about parallelism but doesn't support > the make jobserver model. On the off-chance that anybody cares I tried implementing that, because I've wanted something like that to make "ninja" play nice when invoked from Make for a long time. Rough sketch at https://github.com/Villemoes/jobhog . Rasmus