From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Malte Frank Gerdes Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Jul 2023 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64772@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168995583424557 (code B ref -1); Fri, 21 Jul 2023 16:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jul 2023 16:10:34 +0000 Received: from localhost ([127.0.0.1]:34660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMsi9-0006O0-UE for submit@debbugs.gnu.org; Fri, 21 Jul 2023 12:10:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMsi8-0006Ni-5O for submit@debbugs.gnu.org; Fri, 21 Jul 2023 12:10:33 -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 1qMshv-0005cQ-O1 for bug-guix@gnu.org; Fri, 21 Jul 2023 12:10:20 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMsht-0007mt-EU for bug-guix@gnu.org; Fri, 21 Jul 2023 12:10:19 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fa16c6a85cso3388954e87.3 for ; Fri, 21 Jul 2023 09:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689955807; x=1690560607; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=ZR1MyZ12TZs97JqOsYeiYAhp6u7CXdNrOyFq4UTYyzY=; b=e+IaHCIzGSRlpgicIMEPuXf3dJ6fCwZnng2j4aBFZiXmW3bDgBrokfchcpaI80dBJ7 08FxCYkWB8H0qFt3EqbQ4p6zgpxa0GquWZyjUDkxoxl2xZaiK3z5rj+0pONBx9cBItLk WM6ZKDEkqVO2VGcIH6m8Q7/zvy4TBeuwDqS5wxYlnE3PVCcWgiqTouJvB/HCgyZSvpJr nwCz1kieqFaLgzPIfi+63MO6gf2SgDy0J8MTCQtiff8ycJfPyWnopAVgosuNWvV/M817 umPwStFQMF+RYykyw7INLtq/MkQlUAutrudMklJRLNHNIHD3Ddpiq4hAb8UaBpAigImS u7Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689955807; x=1690560607; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZR1MyZ12TZs97JqOsYeiYAhp6u7CXdNrOyFq4UTYyzY=; b=aDLA1Rmj2hs7PtvLwEiP9jMgolcI620Pv3jCW34DfFf3k+nYvsF6VMLP0NuDJ8IUvW hqwd/hb5+e6VVGgAgwg1BcxjP1K0//oN4zl9HLvT4HJ3wPv0m0jpm0rgQ2X49s5gooqp 22hzD+wN24FX9xs2WoEPIyg8MPoFj0USkGuwBI8Pg5R322rDtyWaDaiQh4iUDXVDaSME QiLkJal6TOYGZL5w5xv4GiSoaQ6zUHPIXQzhd9Xl8Tnv22cdj7yOjAq+nCu6DykNi3cp sxVyMTy5O5hSheEeRBiR76VRHFkcF3rOkPZcvIXnRt6PI/ZX/ReF00WfK967rgh5z8W5 RNTw== X-Gm-Message-State: ABy/qLZG0EVdVynoFpOEltVnhqpw/rjzOxo/alEHBIdN1UVxsrWm5c8n Zz7cYnLu+h8mHtfID1qFgwssRHlCG/k= X-Google-Smtp-Source: APBJJlFilaVFTuu0RrnVnAaLbow80gxoiCZKgHATn8Nz5cSCF6F5Bu8zobIc0UEHdPsNjBawBH5Yhw== X-Received: by 2002:a19:770b:0:b0:4fb:5dd5:715c with SMTP id s11-20020a19770b000000b004fb5dd5715cmr1502959lfc.4.1689955806410; Fri, 21 Jul 2023 09:10:06 -0700 (PDT) Received: from Methadon ([2a02:908:d13:e3e0:6a54:5aff:fe66:a805]) by smtp.gmail.com with ESMTPSA id q21-20020a1ce915000000b003fba6709c68sm3618414wmc.47.2023.07.21.09.10.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 09:10:05 -0700 (PDT) User-agent: mu4e 1.10.5; emacs 29.0.92 From: Malte Frank Gerdes Date: Fri, 21 Jul 2023 17:54:05 +0200 Message-ID: <86zg3pkzz6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=malte.f.gerdes@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_BTC_ID=0.101, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --88--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection [...] Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (malte.f.gerdes[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.5 PDS_BTC_ID FP reduced Bitcoin ID 1.3 BITCOIN_SPAM_05 BitCoin spam pattern 05 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --88--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (malte.f.gerdes[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.5 PDS_BTC_ID FP reduced Bitcoin ID -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.3 BITCOIN_SPAM_05 BitCoin spam pattern 05 Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --8<---------------cut here---------------start------------->8--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection-basic" "texlive-latexmk" "texlive-scheme-basic" "texlive-biber" "texlive-booktabs" "texlive-microtype" "texlive-koma-script" "texlive-lipsum" "texlive-pgfplots" "texlive-biblatex")) --8<---------------cut here---------------end--------------->8--- This command takes quite a long time --8<---------------cut here---------------start------------->8--- guix time-machine --commit=3D21b718f4d6c3ded8ef50d12f6e9ae6474f74620f \ shell --manifest=3Dguix.scm -- latexmk -lualatex -auxdir=3D.tex-cach= e main --8<---------------cut here---------------end--------------->8--- To be precise: --8<---------------cut here---------------start------------->8--- Command being timed: "guix shell -m guix.scm -- latexmk -lualatex -= auxdir=3D.tex-cache main" User time (seconds): 14.60 System time (seconds): 87.58 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 1:43.18 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 179368 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 Minor (reclaiming a frame) page faults: 118914 Voluntary context switches: 2146 Involuntary context switches: 3693 Swaps: 0 File system inputs: 462280 File system outputs: 6584 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 --8<---------------cut here---------------end--------------->8--- Running `latexmk -lualatex -auxdir=3D.tex-cache main` takes under 10 seconds. These times are for fresh builds, i.e. the intermediate files have been removed. Still even recompilation is many times slower with guix provided LuaLaTeX than it is on Arch. I should also note, that using the modular TeX packages actually helps here, with the full TeXlive package the compilation time is nearly twice as much. Another thing i noticed is, that a directory with the following structure gets created: --8<---------------cut here---------------start------------->8--- { =E2=94=94=E2=94=80=E2=94=80 gnu =E2=94=94=E2=94=80=E2=94=80 store =E2=94=94=E2=94=80=E2=94=80 3wsicprhgxhcncaf5mv26wwbhhh8p6yj-profile =E2=94=94=E2=94=80=E2=94=80 share =E2=94=94=E2=94=80=E2=94=80 texmf-dist =E2=94=94=E2=94=80=E2=94=80 luatex-cache =E2=94=94=E2=94=80=E2=94=80 generic =E2=94=9C=E2=94=80=E2=94=80 fonts =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94= =80 otl =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-italic.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-italic.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman12-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman12-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman17-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman17-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmromanslant10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmromanslant10-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-bold.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-bold.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2= =94=80 lmsans10-regular.luc =E2=94=94=E2=94=80=E2=94=80 names =E2=94=9C=E2=94=80=E2=94=80 luaotfload-look= up-cache.lua =E2=94=9C=E2=94=80=E2=94=80 luaotfload-look= up-cache.luc =E2=94=9C=E2=94=80=E2=94=80 luaotfload-name= s.lua.gz =E2=94=94=E2=94=80=E2=94=80 luaotfload-name= s.luc.gz 11 directories, 18 files --8<---------------cut here---------------end--------------->8--- This is obviously for caching purposes, but (seemingly random) having a folder named '{' in your working directory certainly is confusing. mfg From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow References: <86zg3pkzz6.fsf@gmail.com> In-Reply-To: <86zg3pkzz6.fsf@gmail.com> Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 26 Jul 2023 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64772@debbugs.gnu.org Cc: Nicolas Goaziou Received: via spool by 64772-submit@debbugs.gnu.org id=B64772.16904101159985 (code B ref 64772); Wed, 26 Jul 2023 22:22:01 +0000 Received: (at 64772) by debbugs.gnu.org; 26 Jul 2023 22:21:55 +0000 Received: from localhost ([127.0.0.1]:40130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOmtG-0002ay-MG for submit@debbugs.gnu.org; Wed, 26 Jul 2023 18:21:55 -0400 Received: from koszko.org ([93.95.227.159]:49676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOmtD-0002ap-Ov for 64772@debbugs.gnu.org; Wed, 26 Jul 2023 18:21:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=A94aoDIxZ74azFr2yWir+/79Pfz68J3ff3iyTj0FaqE=; b=umNNYFEOs7gfB860vjxhPKngWK Vd0MxRNcGMyYMV1HvIii6ktWGF4kLhY9rE35Jrnp8Vd85CRE+8Rvq344600GxazovcyYM6oJ/VRew YoBRfpzVMxqGZCsTDVYlFcMCv/D3RovzioAu999Q1yBasND5Bm7FoOBIqk+Cvg4VvFgdiV+bKrIJ8 cNwim54sfFxk0+fT05JTYEAM9MDEFFra0z6j6jy1/UOXKzOHgvMJ3TC82d/QnqBQ8q1Qb4+8OuXXi kxCz2255PWS7eXWCc/xultRX1fWygCmU8bNZ4ysYbbCgx9WdvePssInRoWDoC+8ni72Hl3SkBKtBz D3OokORtPaWHvZArr6N3acW5Ec1qHQVDJpZiuQwyoVhflKZgFMc+3XZwhK9eVLd96WwVXsfjR14v1 QSuDBTMlWFR38VZoR+zIe8YVaVzyqsQDEXY2nn2jCOvuqGRZX5bsW2QX0LOK6XPIEJTS13dpNMDmm 3WSH2krNUq2DsHMROVtaxC2NCPyTeWJOTj+YKoLiLOp+6X6lD578F2P4Jurra1pbRLtTwZUoBHTEO 0IQ9INvoith3UA1wF0B00hz/3gRIeWeYwGMDC80kahJEfE7pY3Zf66cl+YDXXgCmTmzk4OKaGXN0b 9Uzh5N8NelrTEVFIqcJbWPUk6WnT0011Z/0/rz5Eg=; Received: from [77.252.47.76] (helo=localhost) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qOmt6-0002Jj-Az; Thu, 27 Jul 2023 00:21:44 +0200 Date: Thu, 27 Jul 2023 00:21:42 +0200 From: Wojtek Kosior Message-ID: <20230727002142.072c0bab.koszko@koszko.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/PczSg.d.HGoPuVcuzcEuC0Z"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/PczSg.d.HGoPuVcuzcEuC0Z Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I think I know what causes a subdirectory of '{' to be used for caches =E2=80=94 the 'share/texmf-dist/web2c/texmf.cnf' file in the texlive-libkpathsea package has a TEXMFROOT =3D {$GUIX_TEXMF}/.. line. It's a "runtime path configuration file for kpathsea" and in general it supports brace expansion. However, in this case something goes wrong. Maybe the expansion is only triggered when there's at least one comma in between the braces? Idk. Btw, Guix uses ":" and not a comma as path separator in 'GUIX_TEXMF' variable and I have no idea whether kpathsea's brace expansion allows ":" to be used instead of ",". Still, I'm pretty sure it is this line that causes the '{' directory problem =E2=80=94 I tried running lualatex after bind-mounting a modified texmf.cnf over the one in the store. I replaced that line with TEXMFROOT =3D $GUIX_TEXMF/.. and no '{' was created this time. Of course, it only worked because GUIX_TEXMF was holding just one path =E2=80=94 a general solution would nee= d to be different. Just in case, this is the part of texlive-kpathsea definition in gnu/packages/tex.scm that prepares 'texmf.cnf': ``` (add-after 'unpack 'customize-texmf.cnf ;; The default "texmf.cnf" file is provided by this package. ;; Every variable of interest is set relatively to the GUIX_TEX= MF ;; environment variable defined via a search path below. ;; ;; This phase must happen before the `configure' phase, because ;; the value of the TEXMFCNF variable (modified along with the ;; SELFAUTOLOC reference below) is used at compile time to ;; generate "paths.h" file. (lambda _ (substitute* "texk/kpathsea/texmf.cnf" (("^TEXMFROOT =3D .*") "TEXMFROOT =3D {$GUIX_TEXMF}/..\n") (("^TEXMF =3D .*") "TEXMF =3D {$GUIX_TEXMF}\n") (("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix) (string-append #$output suffix)) ;; Don't truncate lines. (("^error_line =3D .*$") "error_line =3D 254\n") (("^half_error_line =3D .*$") "half_error_line =3D 238\n") (("^max_print_line =3D .*$") "max_print_line =3D 1000\n")))) ``` Unfortunately, changes to 'texmf.cnf' don't affect the running time of lualatex =E2=80=94 it's still terribly slow Wojtek -- (sig_start) website: https://koszko.org/koszko.html fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A follow me on Fediverse: https://friendica.me/profile/koszko/profile =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (sig_end) --Sig_/PczSg.d.HGoPuVcuzcEuC0Z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMGcdgAKCRBLxSIcWnn9 GimkAP418QD7rnAGfTbU9fqCuzx0KSm/Jh/6fj8FAehUThdpwQD8DB9orap7ZhA6 sQiGGjRqcy4E1fQoa4XUvr0uyxsmUQc= =ZvKp -----END PGP SIGNATURE----- --Sig_/PczSg.d.HGoPuVcuzcEuC0Z-- From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 27 Jul 2023 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64772@debbugs.gnu.org Cc: Nicolas Goaziou Received: via spool by 64772-submit@debbugs.gnu.org id=B64772.169048844727295 (code B ref 64772); Thu, 27 Jul 2023 20:08:01 +0000 Received: (at 64772) by debbugs.gnu.org; 27 Jul 2023 20:07:27 +0000 Received: from localhost ([127.0.0.1]:43178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP7Gh-00076A-9f for submit@debbugs.gnu.org; Thu, 27 Jul 2023 16:07:27 -0400 Received: from koszko.org ([93.95.227.159]:49678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP7Gc-00075s-BO for 64772@debbugs.gnu.org; Thu, 27 Jul 2023 16:07:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xb/xOHsCiTVL+UMne8s7jB18Kc3hEREcKKBGcf08fbg=; b=n9kgKfHnNi+o3M25+ldY1xh+3y qfrePFxI8xXjbnfZqsEanwxKzaWT5CrJZn5U4f8UEpThdNfSMcr5+mWz3r5WTVyw28SAztO9HvO+T 1VDEnc/5bhZwsoB96qfPyxyYV+CUIkTzpN6w8ra3HO7607lMPgwwo2gNRTukUs530olFE2zmaEins OOSOVXu9ckxPA2hxy/+tiiJBthWuDhzIc9X9Uqj9J7AGDouyEyln/9PtNx3MUHPmSz+16iUbvf+Ih HWSVlNYsZS95n5NA4wuSnuLBJuMa9NkNB4nyEiqDZgKpzMwIbfEnwj8ZjyKVRBPcW/B+aAXxFWbwm MBabvYIQHPd2KfHiniytavEEOeulZt6paCu9jZJh2FRvjkntxgwBSrqJUGH5TI+iYrvF0OPi1wIjD PR3iIKCX/SW2ORaRfRrYJitEI2hqEu4rP9ZvXdi2xyHBtP4eRgdc7YZQtK6mo7zqUN03I3LsYgSlZ hNnZwM7LUBFpfyyGl2sJTGx50CspZ+VnEUgJoRNSpKpx2noayV8+o2fFXKoTu9aXCjQFAbuKt5aTB Qk5kv3k4OzJBh0wPBgWdbHXD0aAfK8NPaA2Y0lfi22cjXzVLEj6TIeiTWlW4wA6dfRehWHGdVZUyl XlFtIG93P0TKqOH9QryZ0ft7zc5rOP7jWs13adkEg=; Received: from [77.252.47.76] (helo=localhost) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qP7GU-0003Up-Vf; Thu, 27 Jul 2023 22:07:15 +0200 Date: Thu, 27 Jul 2023 22:07:12 +0200 From: Wojtek Kosior Message-ID: <20230727220712.41f5e278.koszko@koszko.org> In-Reply-To: <20230727002142.072c0bab.koszko@koszko.org> References: <20230727002142.072c0bab.koszko@koszko.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ZM=L6XGzgXPvHFAfrNN8DZn"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I ran lualatex under strace, additionally prepending the time to each line of output. The new (i.e. after tex-team-next merge this July) lualatex has *a lot* of lines like this in the output --8<---------------cut here---------------start------------->8--- Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.lua", R_OK) =3D -= 1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luatex", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luc", R_OK) =3D -= 1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luctex", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texlua", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texluc", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.tlu", R_OK) =3D -= 1 ENOENT (No such file or directory) --8<---------------cut here---------------end--------------->8--- The "old" lualetex (i.e. one from before the merge) does not produce these under strace. This test has been done (in case anyone's wondering) *after* bind-mounting the texmf.cnf of texlive-kpathsea as explained in my previous message. Hopefully, this will help someone solve this Wojtek -- (sig_start) website: https://koszko.org/koszko.html fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A follow me on Fediverse: https://friendica.me/profile/koszko/profile =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (sig_end) On Thu, 27 Jul 2023 00:21:42 +0200 Wojtek Kosior wrote: > Hi, >=20 > I think I know what causes a subdirectory of '{' to be used for caches > =E2=80=94 the 'share/texmf-dist/web2c/texmf.cnf' file in the > texlive-libkpathsea package has a >=20 > TEXMFROOT =3D {$GUIX_TEXMF}/.. >=20 > line. It's a "runtime path configuration file for kpathsea" and in > general it supports brace expansion. However, in this case something > goes wrong. Maybe the expansion is only triggered when there's at least > one comma in between the braces? Idk. Btw, Guix uses ":" and not a > comma as path separator in 'GUIX_TEXMF' variable and I have no idea > whether kpathsea's brace expansion allows ":" to be used instead of ",". >=20 > Still, I'm pretty sure it is this line that causes the '{' directory > problem =E2=80=94 I tried running lualatex after bind-mounting a modified > texmf.cnf over the one in the store. I replaced that line with >=20 > TEXMFROOT =3D $GUIX_TEXMF/.. >=20 > and no '{' was created this time. Of course, it only worked because > GUIX_TEXMF was holding just one path =E2=80=94 a general solution would n= eed to > be different. Just in case, this is the part of texlive-kpathsea > definition in gnu/packages/tex.scm that prepares 'texmf.cnf': >=20 > ``` > (add-after 'unpack 'customize-texmf.cnf > ;; The default "texmf.cnf" file is provided by this package. > ;; Every variable of interest is set relatively to the GUIX_T= EXMF > ;; environment variable defined via a search path below. > ;; > ;; This phase must happen before the `configure' phase, becau= se > ;; the value of the TEXMFCNF variable (modified along with the > ;; SELFAUTOLOC reference below) is used at compile time to > ;; generate "paths.h" file. > (lambda _ > (substitute* "texk/kpathsea/texmf.cnf" > (("^TEXMFROOT =3D .*") > "TEXMFROOT =3D {$GUIX_TEXMF}/..\n") > (("^TEXMF =3D .*") > "TEXMF =3D {$GUIX_TEXMF}\n") > (("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix) > (string-append #$output suffix)) > ;; Don't truncate lines. > (("^error_line =3D .*$") "error_line =3D 254\n") > (("^half_error_line =3D .*$") "half_error_line =3D 238\n") > (("^max_print_line =3D .*$") "max_print_line =3D 1000\n")= ))) >=20 > ``` >=20 > Unfortunately, changes to 'texmf.cnf' don't affect the running time of > lualatex =E2=80=94 it's still terribly slow >=20 > Wojtek >=20 > -- (sig_start) > website: https://koszko.org/koszko.html > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > follow me on Fediverse: https://friendica.me/profile/koszko/profile >=20 > =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyY= XRlZCBtZSBmcm9tIEhpbQ=3D=3D > =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbW= UgSGlzIGZyaWVuZD8=3D > -- (sig_end) --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMLOcAAKCRBLxSIcWnn9 GtDCAQCKKvSijDhWcPZrBeRrarALwQ4vGC82QN6VLnzguNjS7wEAzZp2O7wsLgVP ktCD/veJo+UyuzSbRbIZIOR4kNm7Sgk= =8KpM -----END PGP SIGNATURE----- --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn-- From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Jul 2023 12:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64772@debbugs.gnu.org Cc: koszko@koszko.org X-Debbugs-Original-To: Wojtek Kosior via Bug reports for GNU Guix X-Debbugs-Original-Cc: Wojtek Kosior , 64772@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169054691027695 (code B ref -1); Fri, 28 Jul 2023 12:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2023 12:21:50 +0000 Received: from localhost ([127.0.0.1]:43991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMTd-0007Cc-V6 for submit@debbugs.gnu.org; Fri, 28 Jul 2023 08:21:50 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMTb-0007CM-0V for submit@debbugs.gnu.org; Fri, 28 Jul 2023 08:21:48 -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 1qPMTU-0001T8-96 for bug-guix@gnu.org; Fri, 28 Jul 2023 08:21:40 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPMTR-0006sI-13 for bug-guix@gnu.org; Fri, 28 Jul 2023 08:21:38 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 0B53D2000D; Fri, 28 Jul 2023 12:21:31 +0000 (UTC) From: Nicolas Goaziou References: <20230727002142.072c0bab.koszko@koszko.org> <20230727220712.41f5e278.koszko@koszko.org> Date: Fri, 28 Jul 2023 14:21:30 +0200 In-Reply-To: <20230727220712.41f5e278.koszko@koszko.org> (Wojtek Kosior via Bug reports for's message of "Thu, 27 Jul 2023 22:07:12 +0200") Message-ID: <87ila41b1x.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=2001:4b98:dc4:8::227; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Hello, Wojtek Kosior via Bug reports for GNU Guix writes: > I ran lualatex under strace, additionally prepending the time to each > line of output. The new (i.e. after tex-team-next merge this July) > lualatex has *a lot* of lines like this in the output > > --8<---------------cut here---------------start------------->8--- > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.lua", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luatex", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luc", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luctex", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texlua", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texluc", R_OK) = -1 ENOENT (No such file or directory) > Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/share/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.tlu", R_OK) = -1 ENOENT (No such file or directory) > --8<---------------cut here---------------end--------------->8--- > > The "old" lualetex (i.e. one from before the merge) does not produce > these under strace. Could you try adding a phase doing the following to texlive-luatex? --8<---------------cut here---------------start------------->8--- (substitute* (string-append #$output "/share/texmf-dist/web2c/texmfcnf.lua") (("selfautodir:") #$output) (("selfautoparent:") (string-append #$output "/share/"))) --8<---------------cut here---------------end--------------->8--- The files above are probably generated, and I don't know when. > This test has been done (in case anyone's wondering) *after* > bind-mounting the texmf.cnf of texlive-kpathsea as explained in my > previous message. I suggest to drop this "fix" for now. Regards, -- Nicolas Goaziou From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Jul 2023 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Nicolas Goaziou Cc: 64772@debbugs.gnu.org X-Debbugs-Original-Cc: Wojtek Kosior via Bug reports for GNU Guix , 64772@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169057641823161 (code B ref -1); Fri, 28 Jul 2023 20:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2023 20:33:38 +0000 Received: from localhost ([127.0.0.1]:46186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPU9a-00061V-0F for submit@debbugs.gnu.org; Fri, 28 Jul 2023 16:33:38 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPU9Y-00061I-1M for submit@debbugs.gnu.org; Fri, 28 Jul 2023 16:33:36 -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 1qPU9S-0004yF-3T for bug-guix@gnu.org; Fri, 28 Jul 2023 16:33:30 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPU9Q-0008OZ-PO for bug-guix@gnu.org; Fri, 28 Jul 2023 16:33:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=F87a3VR1ReKNC0iOs3ekR1zaHPff0ekYt5OOFVlfxd0=; b=GBSAvikGrx+92t8dTBtsYywg/I sC50RD9PO8/QnUI/g/dP9FBxoc52dA7YemGHD14CeOqTlvEwbxONeOGfhHpV/whbxFPVdiX9Z3f9I hHpqleTLXLJbDIdR7+7GNvpeZH01XYqLPZs3WeNF32M4jTvWmUDwKFd9BwlgLi4fzkHzSGi4ws1Yr 0CaI2TFPIIVl/8D01QirsTuq8sqlwjaq8TkSVVAqAziYLSvyUc1CkmEqEXuJjXKPLVifwqOUbI28c 6mVKTjxK/9up+ccstE5efUCXxIehyQkDlLEJU3ECeHU01ODzhoafN0YtmZqAc4qtJnqI7rdinudzy kduy4nPgQj5P1K7k4aol9PJAePEb3hdRZFHPR4AeCWMECiPDgZvi7UF2Sr5fvPIHq/6vzQ6Pn9tWl whX2ve4pc2R2/nGNThXVH9U2pXOa3BlPAo9G5zu31XOzB3fCiHsK9Mcoh6kVW2nDanyCcc4Jx7pMj /WlW2N0mB82KFzu2z3ZjbEhn3kY7FJptU0AZvjgKj1kaBw149i+G40DFH7jjS7fbcuQ7ZUGDPHaRU 4Z9JKWkghV6iXR6OHoSrEAvos72Hnrb7A9HM9O3nflZBmAZ7TTZHxQnY3uJwxnmUG2ssiuympS836 eCIdpQ27Fgl5k6AGDxnqtY6CEi/12xqjjJ5j52/5s=; Received: from [77.252.47.76] (helo=localhost) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPU9I-0007e1-Bv; Fri, 28 Jul 2023 22:33:20 +0200 Date: Fri, 28 Jul 2023 22:33:18 +0200 From: Wojtek Kosior Message-ID: <20230728223318.1df4cd3c.koszko@koszko.org> In-Reply-To: <87ila41b1x.fsf@nicolasgoaziou.fr> References: <20230727002142.072c0bab.koszko@koszko.org> <20230727220712.41f5e278.koszko@koszko.org> <87ila41b1x.fsf@nicolasgoaziou.fr> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/t8uJIeDWVjLL22ZmYJ8FC4z"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --Sig_/t8uJIeDWVjLL22ZmYJ8FC4z Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Could you try adding a phase doing the following to texlive-luatex? >=20 > --8<---------------cut here---------------start------------->8--- > (substitute* (string-append #$output "/share/texmf-dist/web2c/texmfcnf.lu= a") > (("selfautodir:") #$output) > (("selfautoparent:") (string-append #$output "/share/")= )) > --8<---------------cut here---------------end--------------->8--- Actually, I've been using the `lualatex` command from the `texlive` package. I now see I my reports might have been confusing as I didn't mention that. I apologize :( Although `lualatex` from `texlive` has been slow for me, now, when using `guix shell texlive-collection-latex` with guix 76e041f9eef85bb039c5251d3350c62ee2066883, I get a rather satisfactory time (below 4s on old Lenovo T400) when compiling this test doc --8<---------------cut here---------------start------------->8--- \documentclass{article} \title{somedoc} \begin{document} aaa \end{document} --8<---------------cut here---------------end--------------->8--- These tons of `ENOENT` are still there in strace's output, tho. Back to your snippet =E2=80=94 if you still think it's worth trying (to see= if it gets rid of the ENOENTs), I'll try it and report later. > The files above are probably generated, and I don't know when. Although I know a lot less about TeX than you, I can at least say that they are not actually "needed" =E2=80=94 no package in my store (not even t= he entire nicely-working texlive from before the merge) had a directory named "lualatexquotejobname". Neither of the following commands yielded anything --8<---------------cut here---------------start------------->8--- find /gnu/store/ -mindepth 1 -maxdepth 1 -name *texlive* -type d -exec fin= d '{}' -name lualatexquotejobname -type d \; find ~/.texlive2021/ -name lualatexquotejobname -type d find ~/.texlive2023/ -name lualatexquotejobname -type d --8<---------------cut here---------------end--------------->8--- > I suggest to drop this "fix" for now. OK Best, Wojtek --Sig_/t8uJIeDWVjLL22ZmYJ8FC4z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMQmDgAKCRBLxSIcWnn9 GsGyAQDBu8bPm9ZW/RCPSDE8sfOMaaD8F3nXYvLLVvSrykmMZAD+OJXrSwpqkSoL WXKDMWJfNOtdm8+Ll5CACsh6G2Tdbgc= =bUn6 -----END PGP SIGNATURE----- --Sig_/t8uJIeDWVjLL22ZmYJ8FC4z-- From unknown Sat Aug 16 21:20:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Jul 2023 21:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Nicolas Goaziou Cc: 64772@debbugs.gnu.org X-Debbugs-Original-Cc: Wojtek Kosior via Bug reports for GNU Guix , 64772@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169057953128076 (code B ref -1); Fri, 28 Jul 2023 21:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2023 21:25:31 +0000 Received: from localhost ([127.0.0.1]:46226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPUxm-0007Im-OE for submit@debbugs.gnu.org; Fri, 28 Jul 2023 17:25:30 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPUxl-0007IT-2g for submit@debbugs.gnu.org; Fri, 28 Jul 2023 17:25:29 -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 1qPUxc-00054z-Ij for bug-guix@gnu.org; Fri, 28 Jul 2023 17:25:21 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPUxZ-0000ln-Ck for bug-guix@gnu.org; Fri, 28 Jul 2023 17:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Hj3jF8kWHJMbwOfY2cHN54j2ptr2GPpgCEmQNuCzt+8=; b=I1FgDH7PYTri6mjdUAQT3s9UVG OITnoT7n4C6oVwk+xdKdeKIP0korQTD6OHq7tTe3z+Ij+M70UKGMAsxt4AWJqKXI9byQV95FN2M58 LHmxKTCknZaJBKGBt5rqUC6IlAitgn8j6yCUtUVcyjhkoVAlDd1FTkKproUexXVwOz/R0yO2YEPxv DRL9ZxlYNkuBdEglLOIUC8EPuTuhKQsyioX3hvY5lzYXj8fvNMIQxD8PONom6NWMHYd51D4VX71gV iBaCPptLHA5IHtDiUCTRbGH5dZeQH5AXNw2hhInNCf7+PELLImPHpGzYC5wyHobLTHLLDznWE/egQ EwZPRhPC4RpkT+tyB+pq/qF8YyhsA3xYjEIcWpe+c81P1YaYer7vHU/JUhFVdHRoe4mLIxk2Z5akO j+DaUXjL+EMxzyAgTKftl/F1h2WLmccHod/XVdv2FhhNJpnoaPn2I476hzXc9w+gB+V2DZ3w/2AOs iUlETE1Avn67MTdZFqY4ozf/MgredPjU90Fj/bYXedabsuu8vJ6qeNFTkYteXgXR4Wb7QyDuXqxM1 1t1Yu4o+nkbcSGoW000MRiI2malZNtb2N7CZ6zOcD3pyU0EvTWOjFsO568KAdazLK6QcZrOSGwgYc I2NCGmRdG6AgeAvmW8fxrUkaq9BbNArcNEXjqMX84=; Received: from [77.252.47.76] (helo=localhost) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPUxV-00007X-8Q; Fri, 28 Jul 2023 23:25:13 +0200 Date: Fri, 28 Jul 2023 23:25:11 +0200 From: Wojtek Kosior Message-ID: <20230728232511.48507fb6.koszko@koszko.org> In-Reply-To: <20230728223318.1df4cd3c.koszko@koszko.org> References: <20230727002142.072c0bab.koszko@koszko.org> <20230727220712.41f5e278.koszko@koszko.org> <87ila41b1x.fsf@nicolasgoaziou.fr> <20230728223318.1df4cd3c.koszko@koszko.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/vdZWZooeRuKb.xqBQXcqGSh"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --Sig_/vdZWZooeRuKb.xqBQXcqGSh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Back to your snippet =E2=80=94 if you still think it's worth trying (to s= ee if > it gets rid of the ENOENTs), I'll try it and report later. Starting from guix 3bb3fddb5c6e79056172e5858cdc0ee0b6b8cfaa, I tried adding this --8<---------------cut here---------------start------------->8--- #:phases #~(modify-phases %standard-phases (add-after 'install 'customize-texmfcnf.lua (lambda _ (substitute* (string-append #$output "/share/texmf-dist/web2c/texmf= cnf.lua") (("selfautodir:") #$output) (("selfautoparent:") (string-append #$output "/share/")))))))) --8<---------------cut here---------------end--------------->8--- to `texlive-luatex` as suggested. I verified manually that the file in the resulting package actually got the paths substituted. I then ran --8<---------------cut here---------------start------------->8--- guix shell -D guix -- path/to/pre-inst-env guix shell texlive-collection-la= tex less coreutils grep findutils which strace -C strace lualatex minimal.tex > strace.txt 2>&1 grep -E 'lualatexquotejobname.*ENOENT' strace.txt | wc -l --8<---------------cut here---------------end--------------->8--- and got 9138 --Sig_/vdZWZooeRuKb.xqBQXcqGSh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMQyNwAKCRBLxSIcWnn9 GiQwAP0aoOLyqJrMnFinxyXKBf8B/LVbtRYpG+NDFhkCz2XvOAD9Hi+0m1asi4tt 5JwnlPZEcq4/6PbE0kU152JlBZWxowE= =LHfx -----END PGP SIGNATURE----- --Sig_/vdZWZooeRuKb.xqBQXcqGSh-- From unknown Sat Aug 16 21:20:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Malte Frank Gerdes Subject: bug#64772: closed (Re: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow) Message-ID: References: <8734mk8equ.fsf@nicolasgoaziou.fr> <86zg3pkzz6.fsf@gmail.com> X-Gnu-PR-Message: they-closed 64772 X-Gnu-PR-Package: guix Reply-To: 64772@debbugs.gnu.org Date: Sat, 31 Aug 2024 23:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1725146342-32715-1" This is a multi-part message in MIME format... ------------=_1725146342-32715-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #64772: TeXlive (specifically LuaLaTeX) has become terribly slow which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 64772@debbugs.gnu.org. --=20 64772: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64772 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1725146342-32715-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 64772-done) by debbugs.gnu.org; 31 Aug 2024 23:18:04 +0000 Received: from localhost ([127.0.0.1]:58447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skXM3-0008UB-JB for submit@debbugs.gnu.org; Sat, 31 Aug 2024 19:18:04 -0400 Received: from msg-1.mailo.com ([213.182.54.11]:48708 helo=mailo.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skXM2-0008TY-Ne for 64772-done@debbugs.gnu.org; Sat, 31 Aug 2024 19:18:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1725146217; bh=AN6am00yO1d1m61PpoMq+iuP3bra8TYNLc+1sJK2xYU=; h=X-EA-Auth:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bwrn35l4J84e6/QXi/OYHfqnyozOyX/oXWnCY0KDPytHMX0RO/jJbxSxRUaSYjbVq mhh4ZgLYz2az/2VPVjedcF2wszx6BPgIrrptf4pwzGFSV3vnJ4ctHCTVQjXb5O5d17 F1j2vQ9PgptbJdXfkmwK7E9QwuzpcYkfFIBsUpLM= Received: by b221-2.in.mailobj.net [192.168.90.22] with ESMTP via ip-20.mailobj.net [213.182.54.20] Sun, 1 Sep 2024 01:16:57 +0200 (CEST) X-EA-Auth: 7EA0KhsMnxdyRnf4LTz4HbeO/YcNNas2x+5Ijfi+PnpGEKpG3S/IsaT0H4aQdsrXC1ySTtSyQdjZ0XH4HdiE9gO2KklTfvLjLjULyh9S11I= From: Nicolas Goaziou To: Malte Frank Gerdes Subject: Re: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow In-Reply-To: <86zg3pkzz6.fsf@gmail.com> (Malte Frank Gerdes's message of "Fri, 21 Jul 2023 17:54:05 +0200") References: <86zg3pkzz6.fsf@gmail.com> Date: Sun, 01 Sep 2024 01:16:41 +0200 Message-ID: <8734mk8equ.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 64772-done Cc: 64772-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) Hello, Malte Frank Gerdes writes: > i'm building a small document with LuaLaTeX, for that i have use the > following manifest > > --8<---------------cut here---------------start------------->8--- > (specifications->manifest > (list > "texlive-amsmath" > "texlive-todonotes" > "texlive-xpatch" > "texlive-collection-luatex" > "texlive-collection-basic" > "texlive-latexmk" > "texlive-scheme-basic" > "texlive-biber" > "texlive-booktabs" > "texlive-microtype" > "texlive-koma-script" > "texlive-lipsum" > "texlive-pgfplots" > "texlive-biblatex")) > --8<---------------cut here---------------end--------------->8--- > > > This command takes quite a long time > > --8<---------------cut here---------------start------------->8--- > guix time-machine --commit=3D21b718f4d6c3ded8ef50d12f6e9ae6474f74620f \ > shell --manifest=3Dguix.scm -- latexmk -lualatex -auxdir=3D.tex-ca= che main > --8<---------------cut here---------------end--------------->8--- > > > To be precise: > > --8<---------------cut here---------------start------------->8--- > Command being timed: "guix shell -m guix.scm -- latexmk -lualatex= -auxdir=3D.tex-cache main" > User time (seconds): 14.60 > System time (seconds): 87.58 > Percent of CPU this job got: 99% > Elapsed (wall clock) time (h:mm:ss or m:ss): 1:43.18 > Average shared text size (kbytes): 0 > Average unshared data size (kbytes): 0 > Average stack size (kbytes): 0 > Average total size (kbytes): 0 > Maximum resident set size (kbytes): 179368 > Average resident set size (kbytes): 0 > Major (requiring I/O) page faults: 0 > Minor (reclaiming a frame) page faults: 118914 > Voluntary context switches: 2146 > Involuntary context switches: 3693 > Swaps: 0 > File system inputs: 462280 > File system outputs: 6584 > Socket messages sent: 0 > Socket messages received: 0 > Signals delivered: 0 > Page size (bytes): 4096 > Exit status: 0 > --8<---------------cut here---------------end--------------->8--- > > > Running `latexmk -lualatex -auxdir=3D.tex-cache main` takes under 10 > seconds. These times are for fresh builds, i.e. the intermediate files > have been removed. Still even recompilation is many times slower with > guix provided LuaLaTeX than it is on Arch. I should also note, that > using the modular TeX packages actually helps here, with the full > TeXlive package the compilation time is nearly twice as much. > > Another thing i noticed is, that a directory with the following > structure gets created: > > --8<---------------cut here---------------start------------->8--- > { > =E2=94=94=E2=94=80=E2=94=80 gnu > =E2=94=94=E2=94=80=E2=94=80 store > =E2=94=94=E2=94=80=E2=94=80 3wsicprhgxhcncaf5mv26wwbhhh8p6yj-prof= ile > =E2=94=94=E2=94=80=E2=94=80 share > =E2=94=94=E2=94=80=E2=94=80 texmf-dist > =E2=94=94=E2=94=80=E2=94=80 luatex-cache > =E2=94=94=E2=94=80=E2=94=80 generic > =E2=94=9C=E2=94=80=E2=94=80 fonts > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2= =94=80 otl > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman10-italic.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman10-italic.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman10-regular.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman10-regular.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman12-regular.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman12-regular.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman17-regular.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmroman17-regular.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmromanslant10-regular.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmromanslant10-regular.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmsans10-bold.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmsans10-bold.luc > =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80= =E2=94=80 lmsans10-regular.lua > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80= =E2=94=80 lmsans10-regular.luc > =E2=94=94=E2=94=80=E2=94=80 names > =E2=94=9C=E2=94=80=E2=94=80 luaotfload-lo= okup-cache.lua > =E2=94=9C=E2=94=80=E2=94=80 luaotfload-lo= okup-cache.luc > =E2=94=9C=E2=94=80=E2=94=80 luaotfload-na= mes.lua.gz > =E2=94=94=E2=94=80=E2=94=80 luaotfload-na= mes.luc.gz > > 11 directories, 18 files > --8<---------------cut here---------------end--------------->8--- > > This is obviously for caching purposes, but (seemingly random) having a > folder named '{' in your working directory certainly is confusing. Both issues reported here are now fixed. Thank you. Regards, --=20 Nicolas Goaziou ------------=_1725146342-32715-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Jul 2023 16:10:34 +0000 Received: from localhost ([127.0.0.1]:34660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMsi9-0006O0-UE for submit@debbugs.gnu.org; Fri, 21 Jul 2023 12:10:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMsi8-0006Ni-5O for submit@debbugs.gnu.org; Fri, 21 Jul 2023 12:10:33 -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 1qMshv-0005cQ-O1 for bug-guix@gnu.org; Fri, 21 Jul 2023 12:10:20 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMsht-0007mt-EU for bug-guix@gnu.org; Fri, 21 Jul 2023 12:10:19 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fa16c6a85cso3388954e87.3 for ; Fri, 21 Jul 2023 09:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689955807; x=1690560607; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=ZR1MyZ12TZs97JqOsYeiYAhp6u7CXdNrOyFq4UTYyzY=; b=e+IaHCIzGSRlpgicIMEPuXf3dJ6fCwZnng2j4aBFZiXmW3bDgBrokfchcpaI80dBJ7 08FxCYkWB8H0qFt3EqbQ4p6zgpxa0GquWZyjUDkxoxl2xZaiK3z5rj+0pONBx9cBItLk WM6ZKDEkqVO2VGcIH6m8Q7/zvy4TBeuwDqS5wxYlnE3PVCcWgiqTouJvB/HCgyZSvpJr nwCz1kieqFaLgzPIfi+63MO6gf2SgDy0J8MTCQtiff8ycJfPyWnopAVgosuNWvV/M817 umPwStFQMF+RYykyw7INLtq/MkQlUAutrudMklJRLNHNIHD3Ddpiq4hAb8UaBpAigImS u7Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689955807; x=1690560607; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZR1MyZ12TZs97JqOsYeiYAhp6u7CXdNrOyFq4UTYyzY=; b=aDLA1Rmj2hs7PtvLwEiP9jMgolcI620Pv3jCW34DfFf3k+nYvsF6VMLP0NuDJ8IUvW hqwd/hb5+e6VVGgAgwg1BcxjP1K0//oN4zl9HLvT4HJ3wPv0m0jpm0rgQ2X49s5gooqp 22hzD+wN24FX9xs2WoEPIyg8MPoFj0USkGuwBI8Pg5R322rDtyWaDaiQh4iUDXVDaSME QiLkJal6TOYGZL5w5xv4GiSoaQ6zUHPIXQzhd9Xl8Tnv22cdj7yOjAq+nCu6DykNi3cp sxVyMTy5O5hSheEeRBiR76VRHFkcF3rOkPZcvIXnRt6PI/ZX/ReF00WfK967rgh5z8W5 RNTw== X-Gm-Message-State: ABy/qLZG0EVdVynoFpOEltVnhqpw/rjzOxo/alEHBIdN1UVxsrWm5c8n Zz7cYnLu+h8mHtfID1qFgwssRHlCG/k= X-Google-Smtp-Source: APBJJlFilaVFTuu0RrnVnAaLbow80gxoiCZKgHATn8Nz5cSCF6F5Bu8zobIc0UEHdPsNjBawBH5Yhw== X-Received: by 2002:a19:770b:0:b0:4fb:5dd5:715c with SMTP id s11-20020a19770b000000b004fb5dd5715cmr1502959lfc.4.1689955806410; Fri, 21 Jul 2023 09:10:06 -0700 (PDT) Received: from Methadon ([2a02:908:d13:e3e0:6a54:5aff:fe66:a805]) by smtp.gmail.com with ESMTPSA id q21-20020a1ce915000000b003fba6709c68sm3618414wmc.47.2023.07.21.09.10.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 09:10:05 -0700 (PDT) User-agent: mu4e 1.10.5; emacs 29.0.92 From: Malte Frank Gerdes To: bug-guix@gnu.org Subject: TeXlive (specifically LuaLaTeX) has become terribly slow Date: Fri, 21 Jul 2023 17:54:05 +0200 Message-ID: <86zg3pkzz6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=malte.f.gerdes@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_BTC_ID=0.101, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --88--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection [...] Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (malte.f.gerdes[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.5 PDS_BTC_ID FP reduced Bitcoin ID 1.3 BITCOIN_SPAM_05 BitCoin spam pattern 05 X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --88--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (malte.f.gerdes[at]gmail.com) -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.5 PDS_BTC_ID FP reduced Bitcoin ID -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.3 BITCOIN_SPAM_05 BitCoin spam pattern 05 Hi, i'm building a small document with LuaLaTeX, for that i have use the following manifest --8<---------------cut here---------------start------------->8--- (specifications->manifest (list "texlive-amsmath" "texlive-todonotes" "texlive-xpatch" "texlive-collection-luatex" "texlive-collection-basic" "texlive-latexmk" "texlive-scheme-basic" "texlive-biber" "texlive-booktabs" "texlive-microtype" "texlive-koma-script" "texlive-lipsum" "texlive-pgfplots" "texlive-biblatex")) --8<---------------cut here---------------end--------------->8--- This command takes quite a long time --8<---------------cut here---------------start------------->8--- guix time-machine --commit=3D21b718f4d6c3ded8ef50d12f6e9ae6474f74620f \ shell --manifest=3Dguix.scm -- latexmk -lualatex -auxdir=3D.tex-cach= e main --8<---------------cut here---------------end--------------->8--- To be precise: --8<---------------cut here---------------start------------->8--- Command being timed: "guix shell -m guix.scm -- latexmk -lualatex -= auxdir=3D.tex-cache main" User time (seconds): 14.60 System time (seconds): 87.58 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 1:43.18 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 179368 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 Minor (reclaiming a frame) page faults: 118914 Voluntary context switches: 2146 Involuntary context switches: 3693 Swaps: 0 File system inputs: 462280 File system outputs: 6584 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 --8<---------------cut here---------------end--------------->8--- Running `latexmk -lualatex -auxdir=3D.tex-cache main` takes under 10 seconds. These times are for fresh builds, i.e. the intermediate files have been removed. Still even recompilation is many times slower with guix provided LuaLaTeX than it is on Arch. I should also note, that using the modular TeX packages actually helps here, with the full TeXlive package the compilation time is nearly twice as much. Another thing i noticed is, that a directory with the following structure gets created: --8<---------------cut here---------------start------------->8--- { =E2=94=94=E2=94=80=E2=94=80 gnu =E2=94=94=E2=94=80=E2=94=80 store =E2=94=94=E2=94=80=E2=94=80 3wsicprhgxhcncaf5mv26wwbhhh8p6yj-profile =E2=94=94=E2=94=80=E2=94=80 share =E2=94=94=E2=94=80=E2=94=80 texmf-dist =E2=94=94=E2=94=80=E2=94=80 luatex-cache =E2=94=94=E2=94=80=E2=94=80 generic =E2=94=9C=E2=94=80=E2=94=80 fonts =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94= =80 otl =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-italic.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-italic.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman10-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman12-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman12-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman17-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmroman17-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmromanslant10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmromanslant10-regular.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-bold.lua =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-bold.luc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 lmsans10-regular.lua =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2= =94=80 lmsans10-regular.luc =E2=94=94=E2=94=80=E2=94=80 names =E2=94=9C=E2=94=80=E2=94=80 luaotfload-look= up-cache.lua =E2=94=9C=E2=94=80=E2=94=80 luaotfload-look= up-cache.luc =E2=94=9C=E2=94=80=E2=94=80 luaotfload-name= s.lua.gz =E2=94=94=E2=94=80=E2=94=80 luaotfload-name= s.luc.gz 11 directories, 18 files --8<---------------cut here---------------end--------------->8--- This is obviously for caching purposes, but (seemingly random) having a folder named '{' in your working directory certainly is confusing. mfg ------------=_1725146342-32715-1--