From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gDmdIbytAWXb8QAAauVa8A:P1 (envelope-from ) for ; Wed, 13 Sep 2023 14:40:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gDmdIbytAWXb8QAAauVa8A (envelope-from ) for ; Wed, 13 Sep 2023 14:40:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 40E915D1F5 for ; Wed, 13 Sep 2023 14:40:28 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694608828; a=rsa-sha256; cv=none; b=cvFiqcQj56MXBLlkR/SBQDH0G58aaHHiNYOBWsRmN6epQtc73f9KxqT8c8p9uNoVJMgwug wjB40Jt0ZUI6d6yhFgp0Iyp1ATaq1rz09KMGayMYBRWBq3BirfwW3KosYYyTFZiSpO6W9X mc2wFsQgdqJYg9HLTK0krfpIocxMmiYaopCdRNypaPHYd5JtEPJ5Xqt/EPdnG88G5MAp4V omJtecYd5KTop2/ZmURql9xX5QJMiwk9Dxx3xKzbw2qMYwHhZK3SLZyR4xp1VgTzFK5r5P FWFTvZKsfo/hVkxfDjauKlMj42OeG4azy0kDPIMgud72mpMOPrCFFOXJnq8Wjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694608828; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=X2XCvaJyaVvW5NG+zGTob8TvrWLkndSS2+xZtnbR/gk=; b=mQ2f4Zm5jrcBcpN0CARs0k/IU1Jwnm5RKnSK9Pn0L/PHShnthx2SDX1gU3o+n6pHGDiiwJ LiJHdgqejFrSDxrMB9vos22gNNej8hjssL08uDt+TgchGuthqWxqW8qoC0f5OEqZmON5l5 lpM1feLSbW5pjmvEIG7eTmI0AzsGWwI+JCbCbSpSxLDyJNplhy2o1KRBSWVOcJmuI41sbj 90MR+IlWknys6BOdpfmucqOhuq8vgTet6UVR6WaerBkiuO5TL4pOCzL4uFeIxkC1mOXVJg Ffk4HWsW0Gm44kXgDW75MVzsx/mUmbLX+RUCFK0FGkgm9SHJCwO6mLa50Gih1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgP9g-0000BB-0v; Wed, 13 Sep 2023 08:39:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgP9d-0008VG-7N for guix-devel@gnu.org; Wed, 13 Sep 2023 08:39:37 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgP9a-0006Ys-48 for guix-devel@gnu.org; Wed, 13 Sep 2023 08:39:36 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 048C540004; Wed, 13 Sep 2023 12:39:30 +0000 (UTC) From: Nicolas Goaziou To: Emmanuel Beffara Cc: guix-devel Subject: Re: performance issue with TeX Live References: <20230912175410.GC1121@beffara.org> Date: Wed, 13 Sep 2023 14:39:30 +0200 In-Reply-To: <20230912175410.GC1121@beffara.org> (Emmanuel Beffara's message of "Tue, 12 Sep 2023 17:54:10 +0200") Message-ID: <87v8cetfgd.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: admin@nicolasgoaziou.fr Received-SPF: pass client-ip=217.70.183.194; envelope-from=mail@nicolasgoaziou.fr; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.30 X-Spam-Score: -6.30 X-Migadu-Queue-Id: 40E915D1F5 X-Migadu-Scanner: mx2.migadu.com X-TUID: iZDIQ40KgFRd Hello, Emmanuel Beffara writes: > I am facing a severe performance issue with TeX Live: compilation of any > document is an order of magnitude slower with a Guix installed system as > compared to a manual installation. Is anyone confronted to this phenomenon, or > is there a way to fix this ? I also experienced a noticeable slowdown; I don't know how to fix it yet. > I tried doing `strace` on the pdflatex calls to investigate further and it > appears that the behaviours of the two versions are largely different. > Counting the number of system calls of each kind gives the following, for the > most frequent calls: > > - minimal document, Guix version: > > 112860 newfstatat > 10491 getdents64 > 5247 openat > 5246 close > 4397 access > 3141 read > > - minimal document, manual version: > > 2772 read > 90 openat > 72 access > 64 close > 64 newfstatat > 60 getdents64 > > - slideshow, Guix version: > > 2831722 getdents64 > 1538560 newfstatat > 1498287 access > 1415296 openat > 1415295 close > 4283 read > > - slideshow, Guix version: > > 3913 read > 1288 getdents64 > 1136 access > 960 openat > 925 close > 920 newfstatat > > So apparently no file hash is used in the Guix version and a large part of the > `texmf-dist` folder is browsed, probably several times. A ls-R file is generated during profile creation (see `texlive-font-maps' function in "guix/profiles.scm") but it seems it is not read. It may be interesting to compare location and contents of the ls-R files in both installations. Regards, -- Nicolas Goaziou