[luatex] memory usage
taco at elvenkind.com
Thu Jul 1 11:57:25 CEST 2010
On 07/01/2010 11:45 AM, Patrick Gundlach wrote:
>> A few dozen nodes can not be the problem, as that is less than
>> one kb. You had better check how much memory is taken up by
>> the lua state (status.luabytes iirc)
> Its more then a few dozen but this does not justify the> 6 gig memory usage, I'd guess:
> node_mem_usage=15654424 hlist, 23395466 vlist, 3925881 rule, 88525 disc,
> 70867847 glue, 15985958 penalty, 20651657 glyph, 2873213 attribute, 56441926 glue_spec,
> 2873213 attribute_list, 1 dir, 45 pdf_literal, 20458 pdf_refximage
Ouch. That adds up to roughly 200Mln nodes. At roughly 4 memory words
per node and 8 bytes per memory word, you indeed get 6G.
Perhaps you are using copy_list a bit too eagerly (are you
assigning to .list fields without freeing the old content first?).
More information about the luatex