From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:39341) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJGXn-0002xv-U5 for guix-patches@gnu.org; Tue, 31 Mar 2020 09:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJGXm-0008UJ-VH for guix-patches@gnu.org; Tue, 31 Mar 2020 09:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJGXm-0008UA-Sc for guix-patches@gnu.org; Tue, 31 Mar 2020 09:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJGXm-0002fk-QO for guix-patches@gnu.org; Tue, 31 Mar 2020 09:03:02 -0400 Subject: bug#36630: [PATCH] guix: parallelize building the manual-database Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190712214245.23857-1-arne_bab@web.de> <878sszl1jo.fsf@gnu.org> <877e8ig9gh.fsf@web.de> <87zhldel6f.fsf@gnu.org> <878ssw8ger.fsf@web.de> <875znzhg91.fsf@gnu.org> <87k1cfpq0k.fsf@web.de> <87zhlbe9qt.fsf@gnu.org> <87d0i7p0ug.fsf@web.de> <87d0entemt.fsf@web.de> Date: Tue, 31 Mar 2020 15:02:47 +0200 In-Reply-To: <87d0entemt.fsf@web.de> (Arne Babenhauserheide's message of "Wed, 23 Oct 2019 22:01:46 +0200") Message-ID: <87zhbwvfrc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arne Babenhauserheide Cc: 36630-done@debbugs.gnu.org Hi Arne, Arne Babenhauserheide skribis: > I now reduced the thread count to exactly 2 (to avoid running into > resource troubles; I hope that two should be safe) and added a mutex for > status messages to ensure that writes don=E2=80=99t overlap. It=E2=80=99s been 9 months but I finally committed a slightly modified vari= ant as ef4b5f2fed3ca13a0e15a821ba7e561cd4395aa6. It turns out that the mutex was unnecessary as ports are thread-safe. As noted in the log, I see a 36% speedup on my SSD laptop with 4 cores (slightly less with 2 cores). It=E2=80=99s not great, but still an improve= ment! Thanks, Ludo=E2=80=99.