From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112789 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marcus Vinicius Mesquita via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: If you really absolutely need more capacity, you can ask a wizard to enlarge me Date: Fri, 10 Sep 2021 08:45:57 -0300 Message-ID: References: <9fa1de4c-f8fd-ff56-8645-2b3099a06d2c@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7107874679791782454==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Marcus Vinicius Mesquita , mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 10 13:46:45 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOezU-0001OA-W6 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 10 Sep 2021 13:46:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B2EC8286945; Fri, 10 Sep 2021 13:46:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qik_8UYmMA5t; Fri, 10 Sep 2021 13:46:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B9EBA2870E4; Fri, 10 Sep 2021 13:46:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F174286945 for ; Fri, 10 Sep 2021 13:46:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ai0GhANwoUfB for ; Fri, 10 Sep 2021 13:46:13 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.176; helo=mail-pf1-f176.google.com; envelope-from=marcusvinicius.mesquita@gmail.com; receiver= Original-Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C664B2864BB for ; Fri, 10 Sep 2021 13:46:12 +0200 (CEST) Original-Received: by mail-pf1-f176.google.com with SMTP id x7so1633333pfa.8 for ; Fri, 10 Sep 2021 04:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D1IyGyxgWyRZtK/CSRaMvkVBUtKbDxs3EHsOmZ/2riM=; b=SOa9kYZaAfVhmoqbPMnwPws0yQ2L/wX4L4wnKUUON2vG//YHWWzYvalpBSFiewU7Rv a7P2mZ9ajt5jKiDpV5Md8eMrRmVESu8ijs0Lmc+C7CZcggHHYFsAd3Uy2NZpi6Pzsws8 iiGRlrBEotzZSmDPK3q+CMpdCeU05PglQ1XvPb/jlUibg2o0uE+F+l9eW+QKiJHqySAU BAnlPhZ6RlFeowQRQmfMqt6xgO9qTbAYhPNxOEiK5L7y5hH0TjttQfVpfx2Fs2HixOL2 9vckgC3RBBCv5AtBzvRIRBzF8YO93/moqCEpwRWZQZLbWqIoQmY7miY56tZiTWWGk5xy Dk7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D1IyGyxgWyRZtK/CSRaMvkVBUtKbDxs3EHsOmZ/2riM=; b=ARtlB2r9KcAjmo12W3HzAwS8EkQjAontgyrNyEY/L7Huoo4th/3759mTGoi1XvBjLY S9nU3PXFQqY7VnJnmfc/kqs1NQZCtKUS1B4V+EMDBzW6DCOGOqyB/J9GywJftPV//+t9 vU0mUfGxixEZ8Qg4bie2XllWokjlwjJNvuvPI9VnTVVNL2NEVNwZ1p/SdH+X4yw+aKdt a+3e02jsyjnuRGZzDqOyrlHIBtBMOSChux+SW+S7YrKbNgmUpatquXsZv+afIs+8Z7F6 A2aS5aGcjDmDA4l/kg2DvT1gZtj3Cnl4V7WDA3l72417kyL42Nc+snq0Hwu4J7p5RWLC SjZg== X-Gm-Message-State: AOAM533JIBPPwaxUoBdmzeSQSWxYTjJ62/PvkIr8BFoXRblHfGIs6gfu 7wJH1NPSi0Y/y7G+5Wtn6o3W+R9XaZi9yCs7JXs= X-Google-Smtp-Source: ABdhPJx298LzbybeYPy4YwbA4jSXYddfrU0eX4wwRZI5crscNwk203WGunOFZyN0CnBcDypbVkuuTqpd1Wc0OZZEGG8= X-Received: by 2002:a62:1450:0:b0:411:26a5:ba7e with SMTP id 77-20020a621450000000b0041126a5ba7emr7849697pfu.77.1631274370796; Fri, 10 Sep 2021 04:46:10 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112789 Archived-At: --===============7107874679791782454== Content-Type: multipart/alternative; boundary="0000000000006712a505cba2a97b" --0000000000006712a505cba2a97b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, After perusing the texmfcnf.lua file, I created a file with the same name in my texmf-local folder, changing the settings for the node memory and step size, but it did not affect the compilation of the original MWE (without the enableexperiments switches), which still fails. What am I missing? Below the contents of the file: return { content =3D { directives =3D { ["luametatex.nodesize"] =3D { size =3D 60000000, step =3D 600000 }, } } } Marcus Vinicius On Fri, Sep 10, 2021 at 5:55 AM Marcus Vinicius Mesquita < marcusvinicius.mesquita@gmail.com> wrote: > Hi, Hans > > The enableexperiments switches you pointed to solved the problem for the > mwe I sent, but I'll take a look at the texmfcnf.lua configuration file t= o > learn more. > > Thank you for your suggestions. > > Marcus Vinicius > > > On Thu, Sep 9, 2021 at 5:12 AM Hans Hagen wrote: > >> On 9/9/2021 12:52 AM, Marcus Vinicius Mesquita via ntg-context wrote: >> > Dear list, >> > >> > In the MWE below, ConTeXt lmtx throws an error with the message in the >> > title: >> > >> > \starttext >> > \startluacode >> > >> > local upperlimit =3D 90000 >> > >> > context.starttabulate({ "|l|l|l|" }) >> > for i=3D1,upperlimit do >> > context.NC() >> > context("word 1") >> > context.NC() >> > context("word 2") >> > context.NC() >> > context("word 3") >> > context.NC() >> > context.AR() >> > end >> > context.stoptabulate() >> > >> > \stopluacode >> > \stoptext >> > >> > But it compiles with no problems with MKIV. >> > >> > context version: 2021.09.06 11:47 >> > >> > How to avoid this with lmtx? >> In luatex there is also a max on configured memory usage but because in >> luametatex we have larger nodes you hit limits earlier. Also, the memory >> allocation in luametatex is somewhat different (larger nodes are >> compensated by savings elsewhere so in the end mem usage for this run is >> similar). >> >> luatex luametatex >> >> pages 2196 2196 >> pps/s 8 11 >> time 278 195 >> mem 1.1G 1.1G >> >> now, luametatex reports >> >> tex memory > bumping category 'node' succeeded, details: >> all=3D400500000 | ini=3D0 | max=3D50000000 | mem=3D44500000 | min=3D1000= 000 | >> ptr=3D-843956 | set=3D50000000 | stp=3D500000 | top=3D43999999 >> >> you can bump the the max in the configuration file and also the step. As >> you can see, luametatex runs quite a bit faster on this test but that is >> due to other differences between the two engines. >> >> The reason why it does run on my machine is that i have this: >> >> \enableexperiments [tabulatesparseskips] >> \enableexperiments [tabulateusesize] >> >> this makes tabulate a bit more efficient in terms of node usage so i >> stay some 20% below the configured max .. you can try to run with this >> option. Of course adding more text will also demand more mem but then >> you can always bump the max (in a configuration file in texmf-local or >> so; maybe some day i will add a --huge flag to the runner). >> >> Hans >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >> ----------------------------------------------------------------- >> > > > -- > Todas as coisas fatigam o corpo, salvo a m=C3=BAsica, que n=C3=A3o fatiga= nem o > corpo nem seus membros, por ser descanso da alma, primavera do cora=C3=A7= =C3=A3o, > distra=C3=A7=C3=A3o do aflito, entretenimento do solit=C3=A1rio, e vi=C3= =A1tico do viajante. > > Kunn=C3=A2sh al-H=C3=A2'ik (Cancioneiro de al-H=C3=A2'ik) > --=20 Todas as coisas fatigam o corpo, salvo a m=C3=BAsica, que n=C3=A3o fatiga n= em o corpo nem seus membros, por ser descanso da alma, primavera do cora=C3=A7=C3=A3o,= distra=C3=A7=C3=A3o do aflito, entretenimento do solit=C3=A1rio, e vi=C3=A1tico do viajante. Kunn=C3=A2sh al-H=C3=A2'ik (Cancioneiro de al-H=C3=A2'ik) --0000000000006712a505cba2a97b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

After per= using the texmfcnf.lua file, I created a file with the same name
in my t= exmf-local folder, changing the settings for the node memory and step size,= but it did not affect the compilation of the original MWE (without the ena= bleexperiments switches), which still fails.=C2=A0 What am I missing?
Below the contents of the file:

return {
=C2=A0 =C2=A0content = =3D {
directives =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0["luametatex.n= odesize"] =3D { size =3D 60000000, step =3D =C2=A0600000 },
}
= =C2=A0 }
}

Marcus Vinicius
=
On Fri= , Sep 10, 2021 at 5:55 AM Marcus Vinicius Mesquita <marcusvinicius.mesquita@gmail.com> = wrote:
Hi, Hans

The enableexperiments switches you pointed to solved the problem for the mwe I sent, bu= t I'll take a look at the texmfcnf.lua configuration file to learn more= .

Thank you for your suggestions.

Marcus Vinicius


On Thu, Sep 9, 2021 at 5:12 AM Hans Hagen <= ;j.hagen@xs4all.nl> wrote:
On= 9/9/2021 12:52 AM, Marcus Vinicius Mesquita via ntg-context wrote:
> Dear list,
>
> In the MWE below, ConTeXt lmtx throws an error with the message in the=
> title:
>
> \starttext
> \startluacode
>
> local upperlimit =3D 90000
>
> context.starttabulate({ "|l|l|l|" })
> for i=3D1,upperlimit do
> context.NC()
> context("word 1")
> context.NC()
> context("word 2")
> context.NC()
> context("word 3")
> context.NC()
> context.AR()
> end
> context.stoptabulate()
>
> \stopluacode
> \stoptext
>
> But it compiles with no problems with MKIV.
>
> context version: 2021.09.06 11:47
>
> How to avoid this with lmtx?
In luatex there is also a max on configured memory usage but because in luametatex we have larger nodes you hit limits earlier. Also, the memory allocation in luametatex is somewhat different (larger nodes are
compensated by savings elsewhere so in the end mem usage for this run is similar).

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0luatex=C2=A0 luametatex

pages=C2=A0 =C2=A02196=C2=A0 =C2=A0 2196
pps/s=C2=A0 =C2=A0 =C2=A0 8=C2=A0 =C2=A0 =C2=A0 11
time=C2=A0 =C2=A0 =C2=A0278=C2=A0 =C2=A0 =C2=A0195
mem=C2=A0 =C2=A0 =C2=A01.1G=C2=A0 =C2=A0 1.1G

now, luametatex reports

tex memory=C2=A0 =C2=A0 =C2=A0 > bumping category 'node' succeed= ed, details:
all=3D400500000 | ini=3D0 | max=3D50000000 | mem=3D44500000 | min=3D1000000= |
ptr=3D-843956 | set=3D50000000 | stp=3D500000 | top=3D43999999

you can bump the the max in the configuration file and also the step. As you can see, luametatex runs quite a bit faster on this test but that is due to other differences between the two engines.

The reason why it does run on my machine is that i have this:

\enableexperiments [tabulatesparseskips]
\enableexperiments [tabulateusesize]

this makes tabulate a bit more efficient in terms of node usage so i
stay some 20% below the configured max .. you can try to run with this
option. Of course adding more text will also demand more mem but then
you can always bump the max (in a configuration file in texmf-local or
so; maybe some day i will add a --huge flag to the runner).

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 |
www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------


--
Todas= as coisas fatigam o corpo, salvo a m=C3=BAsica, que n=C3=A3o fatiga nem o = corpo nem seus membros, por ser descanso da alma, primavera do cora=C3=A7= =C3=A3o, distra=C3=A7=C3=A3o do aflito, entretenimento do solit=C3=A1rio, e= vi=C3=A1tico do viajante.

Kunn=C3=A2sh al-H=C3=A2= 'ik (Cancioneiro de al-H=C3=A2'ik)


--
Todas as coisas fatigam o corpo, salvo a m=C3=BAsica, = que n=C3=A3o fatiga nem o corpo nem seus membros, por ser descanso da alma,= primavera do cora=C3=A7=C3=A3o, distra=C3=A7=C3=A3o do aflito, entretenime= nto do solit=C3=A1rio, e vi=C3=A1tico do viajante.

Kunn=C3=A2sh al-H=C3=A2'ik (Cancioneiro de al-H=C3=A2'ik)
--0000000000006712a505cba2a97b-- --===============7107874679791782454== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7107874679791782454==--