[luatex] memory usage

Taco Hoekwater taco at elvenkind.com
Wed Jun 30 09:40:39 CEST 2010


On 06/29/2010 09:56 PM, Patrick Gundlach wrote:
> Hi,
>
> I try to get rid of memory leaks, so I use status.node_mem_usage for tracing. Should status.node_mem_usage be all 0 at the end of a document?
>
> If I have for example this at the end of a document:
>
> node_mem_usage=2 hlist, 4 vlist, 4 glue, 1 kern, 1 penalty, 3 glyph, 3 attribute, 5 glue_spec, 3 attribute_list, 1 dir
>
> does that mean I forgot to clear the 2 hlists, 4 vlists, 4 glues etc.?

Essentially, yes. But note:

1. There is some nesting. For example, the attributes are always inside
attribute lists and attribute lists are usually attached to other nodes,
and [hv]lists are likely to contain various other nodes.

2. Some of the 'leaks' come from plain.tex

Best wishes,
Taco


More information about the luatex mailing list