Re: [NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
Yes, in texmf-local/web2c

Only mtxrun --generate

But even after now also running context --make,
when compiling the mwe, lmtx throws:
tex error   > tex error on line 540005 in file ./mwe.tex: TeX capacity
exceeded, sorry [node memory size=5000]

On Fri, Sep 10, 2021 at 8:49 AM Hans Hagen  wrote:

> On 9/10/2021 1:45 PM, Marcus Vinicius Mesquita wrote:
> > 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 = {
> > directives = {
> > ["luametatex.nodesize"] = { size = 6000, step =  60 },
> > }
> >}
> > }
> hm, in texmf-local/web2c ? did you run mtxrun --generate and context
> --make ?
>
> 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úsica, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Hans Hagen via ntg-context

On 9/10/2021 1:45 PM, Marcus Vinicius Mesquita wrote:

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 = {
directives = {
        ["luametatex.nodesize"] = { size = 6000, step =  60 },
}
   }
}
hm, in texmf-local/web2c ? did you run mtxrun --generate and context 
--make ?


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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
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 = {
directives = {
   ["luametatex.nodesize"] = { size = 6000, step =  60 },
}
  }
}

Marcus Vinicius

On Fri, Sep 10, 2021 at 5:55 AM Marcus Vinicius Mesquita <
marcusvinicius.mesqu...@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 to
> 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 = 9
>> >
>> > context.starttabulate({ "|l|l|l|" })
>> > for i=1,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   21962196
>> pps/s  8  11
>> time 278 195
>> mem 1.1G1.1G
>>
>> now, luametatex reports
>>
>> tex memory  > bumping category 'node' succeeded, details:
>> all=40050 | ini=0 | max=5000 | mem=4450 | min=100 |
>> ptr=-843956 | set=5000 | stp=50 | top=4399
>>
>> 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úsica, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>


-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-10 Thread Marcus Vinicius Mesquita via ntg-context
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 to
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 = 9
> >
> > context.starttabulate({ "|l|l|l|" })
> > for i=1,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   21962196
> pps/s  8  11
> time 278 195
> mem 1.1G1.1G
>
> now, luametatex reports
>
> tex memory  > bumping category 'node' succeeded, details:
> all=40050 | ini=0 | max=5000 | mem=4450 | min=100 |
> ptr=-843956 | set=5000 | stp=50 | top=4399
>
> 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úsica, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-09 Thread Hans Hagen via ntg-context

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 = 9

context.starttabulate({ "|l|l|l|" })
for i=1,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   21962196
pps/s  8  11
time 278 195
mem 1.1G1.1G

now, luametatex reports

tex memory  > bumping category 'node' succeeded, details: 
all=40050 | ini=0 | max=5000 | mem=4450 | min=100 | 
ptr=-843956 | set=5000 | stp=50 | top=4399


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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] If you really absolutely need more capacity, you can ask a wizard to enlarge me

2021-09-08 Thread Marcus Vinicius Mesquita via ntg-context
Dear list,

In the MWE below, ConTeXt lmtx throws an error with the message in the
title:

\starttext
\startluacode

local upperlimit = 9

context.starttabulate({ "|l|l|l|" })
for i=1,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?

TIA
Marcus Vinicius
-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo
nem seus membros, por ser descanso da alma, primavera do coração, distração
do aflito, entretenimento do solitário, e viático do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___