Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

TeX uses a variety of files to set the maximum memory of various items, e.g. "pool size". Is there a command which will print the values of all of these variables?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

This is "distribution dependent"; Web2C based distributions such as TeX Live or MiKTeX use one or more texmf.cnf file to set memory parameters at run time. With these distributions, the command line

kpsewhich -a texmf.cnf

will show the location of the loaded files, where one can look at the settings. However, just saying in your TeX file

\tracingstats=1

(which LaTeX does anyway) will result in TeX printing something like

Here is how much of TeX's memory you used:
 1 string out of 497974
 10 string characters out of 3220722
 5898 words of memory out of 3000000
 926 multiletter control sequences out of 15000+200000
 14794 words of font info for 50 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 1i,0n,0p,17b,6s stack positions out of 5000i,500n,10000p,200000b,50000s

at the end of the .log file, where the memory parameters are quite clearly recognizable; pdfTeX will add other pieces of information such as

PDF statistics:
 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

(Yes, the sample file didn't use much memory.)

XeTeX will print similarly to Knuth TeX, while LuaTeX will print something slightly different:

Here is how much of LuaTeX's memory you used:
 3 strings out of 496569
 100000,35830 words of node,token memory allocated 161 words of node memory still in use:
   2 hlist, 1 rule, 1 glyph, 18 glue_spec nodes
   avail lists: 2:4,3:1,4:1,6:3
 2000 multiletter control sequences out of 65536+200000
 50 fonts using 1466661 bytes
 1i,0n,0p,16b,6s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.

PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
share|improve this answer
2  
And regstats will report numbers of used registers (counter, dimen, skip, muskip, box, token, input, output, math families, languages, insertions), and will compare the number to the maximum available number of such registers. –  Stephen Apr 1 '12 at 17:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.