On Saturday 14 April 2007 14:29, Werner LEMBERG wrote: > > Now lets create some files: > > $ make -C Documentation/user web > > # Ctrl-C after a minute or so > > $ time mf-nowin -progname=mf "\mode:=ljfour; mode_setup; end." > > real 0m32.998s > > user 0m28.638s > > sys 0m4.336s > > Try this for both cases: > > KPATHSEA_DEBUG=-1 mf-nowin -progname=mf "\mode:=ljfour; mode_setup; end."
Thanks for the quick reply. I've tried this and attached the (heavily snipped) output. The main thing I noticed is that it is scanning paths like /home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-3c5cc96107.pdf. Since "source" is a symbolic link to "../..", could it be getting trapped in a loop? Anyway, I don't really know how to interperet the output, so I'll attach it. If you want to see a less abbreviated version, I can do that too. > and press Ctrl-C after, say, two seconds, if necessary. The > comparison of the output should help identify the `hot spots'. [I > assume that you are running a distribution like tetex or TeXLive which > uses the kpathsea library for searching files.] In case it makes a difference, I am using tetex on gentoo. > What you describe shouldn't happen. Maybe your TeX distribution is > somehow screwed up. If everything fails, reinstall it or upgrade to a > newer version. On my platform (using GNU/Linux with TeXLive 2007) > everything is just fine. I tried "emerge -e world" to reinstall/upgrade every program on my computer but it didn't change anything. My current version of tetex is tetex-3.0_p1-r3, which is the latest version available on this distribution. Thanks, Joe
kdebug:fopen(/usr/bin/mf-nowin, r) => 0x5cd210 kdebug:fclose(0x5cd210) => 0 kdebug:Search path for cnf files (from compile-time paths.h) kdebug: = /usr/bin:/usr:/:/usr/bin/share/texmf-local/web2c:/usr/share/texmf-local/web2c://share/texmf-local/web2c:/usr/bin/texmf-local/web2c:/usr/texmf-local/web2c://texmf-local/web2c:/usr/bin/share/texmf/web2c:/usr/share/texmf/web2c://share/texmf/web2c:/usr/bin/texmf/web2c:/usr/texmf/web2c://texmf/web2c::/var/lib/texmf/web2c:/var/lib/texmf/web2c kdebug: before expansion = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}:$TETEXDIR:/var/lib/texmf/web2c:/var/lib/texmf/web2c kdebug: application override path = (none) kdebug: application config file path = (none) kdebug: texmf.cnf path = (none) kdebug: compile-time path = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}:$TETEXDIR:/var/lib/texmf/web2c:/var/lib/texmf/web2c kdebug: default suffixes = .cnf kdebug: other suffixes = (none) kdebug: search only with suffix = 0 kdebug: numeric format value = 8 kdebug: runtime generation program = (none) kdebug: runtime generation command = (none) kdebug: program enabled = 0 kdebug: program enable level = 0 kdebug:start search(file=texmf.cnf, must_exist=1, find_all=1, path=/usr/bin:/usr:/:/usr/bin/share/texmf-local/web2c:/usr/share/texmf-local/web2c://share/texmf-local/web2c:/usr/bin/texmf-local/web2c:/usr/texmf-local/web2c://texmf-local/web2c:/usr/bin/share/texmf/web2c:/usr/share/texmf/web2c://share/texmf/web2c:/usr/bin/texmf/web2c:/usr/texmf/web2c://texmf/web2c::/var/lib/texmf/web2c:/var/lib/texmf/web2c). kdebug:kpse_normalize_path (/usr/bin) => 1 kdebug:kpse_normalize_path (/usr/bin) => 1 kdebug:path element /usr/bin => /usr/bin/ kdebug:kpse_normalize_path (/usr/bin/texmf.cnf) => 1 kdebug:kpse_normalize_path (/usr) => 1 kdebug:kpse_normalize_path (/usr) => 1 kdebug:path element /usr => /usr/ kdebug:kpse_normalize_path (/usr/texmf.cnf) => 1 kdebug:kpse_normalize_path (/) => 1 kdebug:kpse_normalize_path (/) => 1 kdebug:path element / => / kdebug:kpse_normalize_path (/texmf.cnf) => 1 kdebug:kpse_normalize_path (/usr/bin/share/texmf-local/web2c) => 1 kdebug:kpse_normalize_path (/usr/bin/share/texmf-local/web2c) => 1 kdebug:path element /usr/bin/share/texmf-local/web2c => kdebug:kpse_normalize_path (/usr/share/texmf-local/web2c) => 1 kdebug:kpse_normalize_path (/usr/share/texmf-local/web2c) => 1 kdebug:path element /usr/share/texmf-local/web2c => kdebug:kpse_normalize_path (//share/texmf-local/web2c) => 2 kdebug:kpse_normalize_path (//share/texmf-local/web2c) => 2 kdebug:path element //share/texmf-local/web2c => kdebug:kpse_normalize_path (/usr/bin/texmf-local/web2c) => 1 kdebug:kpse_normalize_path (/usr/bin/texmf-local/web2c) => 1 kdebug:path element /usr/bin/texmf-local/web2c => kdebug:kpse_normalize_path (/usr/texmf-local/web2c) => 1 kdebug:kpse_normalize_path (/usr/texmf-local/web2c) => 1 kdebug:path element /usr/texmf-local/web2c => kdebug:kpse_normalize_path (//texmf-local/web2c) => 2 kdebug:kpse_normalize_path (//texmf-local/web2c) => 2 kdebug:path element //texmf-local/web2c => kdebug:kpse_normalize_path (/usr/bin/share/texmf/web2c) => 1 kdebug:kpse_normalize_path (/usr/bin/share/texmf/web2c) => 1 kdebug:path element /usr/bin/share/texmf/web2c => kdebug:kpse_normalize_path (/usr/share/texmf/web2c) => 1 kdebug:kpse_normalize_path (/usr/share/texmf/web2c) => 1 kdebug:path element /usr/share/texmf/web2c => /usr/share/texmf/web2c/ kdebug:kpse_normalize_path (/usr/share/texmf/web2c/texmf.cnf) => 1 kdebug:kpse_normalize_path (//share/texmf/web2c) => 2 kdebug:kpse_normalize_path (//share/texmf/web2c) => 2 kdebug:path element //share/texmf/web2c => kdebug:kpse_normalize_path (/usr/bin/texmf/web2c) => 1 kdebug:kpse_normalize_path (/usr/bin/texmf/web2c) => 1 kdebug:path element /usr/bin/texmf/web2c => kdebug:kpse_normalize_path (/usr/texmf/web2c) => 1 kdebug:kpse_normalize_path (/usr/texmf/web2c) => 1 kdebug:path element /usr/texmf/web2c => kdebug:kpse_normalize_path (//texmf/web2c) => 2 kdebug:kpse_normalize_path (//texmf/web2c) => 2 kdebug:path element //texmf/web2c => kdebug:kpse_normalize_path () => 0 kdebug:kpse_normalize_path (/var/lib/texmf/web2c) => 1 kdebug:kpse_normalize_path (/var/lib/texmf/web2c) => 1 kdebug:path element /var/lib/texmf/web2c => /var/lib/texmf/web2c/ kdebug:kpse_normalize_path (/var/lib/texmf/web2c/texmf.cnf) => 1 kdebug:kpse_normalize_path (/var/lib/texmf/web2c) => 1 kdebug:kpse_normalize_path (/var/lib/texmf/web2c/texmf.cnf) => 1 kdebug:fopen(/var/lib/texmf/web2c/texmf.cnf, r) => 0x5cfd70 kdebug:fclose(0x5cfd70) => 0 kdebug:fopen(/var/lib/texmf/web2c/texmf.cnf, r) => 0x5cfd70 kdebug:fclose(0x5cfd70) => 0 kdebug:hash_lookup(TEXMFDBS.mf) => (nil) kdebug:hash_lookup(TEXMFDBS) => $TEXMF:$VARTEXFONTS $TEXMF:$VARTEXFONTS kdebug:hash_lookup(TEXMF.mf) => (nil) kdebug:hash_lookup(TEXMF) => {!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFSITE,!!$TEXMFDIST} {!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFSITE,!!$TEXMFDIST} kdebug:hash_lookup(TEXMFCONFIG.mf) => (nil) kdebug:hash_lookup(TEXMFCONFIG) => $HOME/.texmf-config $HOME/.texmf-config kdebug:hash_lookup(TEXMFVAR.mf) => (nil) kdebug:hash_lookup(TEXMFVAR) => $HOME/.texmf-var $HOME/.texmf-var kdebug:hash_lookup(TEXMFHOME.mf) => (nil) kdebug:hash_lookup(TEXMFHOME) => $HOME/texmf $HOME/texmf kdebug:hash_lookup(TEXMFSYSCONFIG.mf) => (nil) kdebug:hash_lookup(TEXMFSYSCONFIG) => $TEXMFMAIN $TEXMFMAIN kdebug:hash_lookup(TEXMFMAIN.mf) => (nil) kdebug:hash_lookup(TEXMFMAIN) => /var/lib/texmf /var/lib/texmf kdebug:hash_lookup(TEXMFSYSVAR.mf) => (nil) kdebug:hash_lookup(TEXMFSYSVAR) => $TEXMFMAIN $TEXMFMAIN kdebug:hash_lookup(TEXMFMAIN.mf) => (nil) kdebug:hash_lookup(TEXMFMAIN) => /var/lib/texmf /var/lib/texmf kdebug:hash_lookup(TEXMFMAIN.mf) => (nil) kdebug:hash_lookup(TEXMFMAIN) => /var/lib/texmf /var/lib/texmf kdebug:hash_lookup(TEXMFLOCAL.mf) => (nil) kdebug:hash_lookup(TEXMFLOCAL) => /usr/local/share/texmf /usr/local/share/texmf kdebug:hash_lookup(TEXMFSITE.mf) => (nil) kdebug:hash_lookup(TEXMFSITE) => /usr/share/texmf-site /usr/share/texmf-site kdebug:hash_lookup(TEXMFDIST.mf) => (nil) kdebug:hash_lookup(TEXMFDIST) => /usr/share/texmf /usr/share/texmf kdebug:hash_lookup(VARTEXFONTS.mf) => (nil) kdebug:hash_lookup(VARTEXFONTS) => /var/cache/fonts /var/cache/fonts kdebug:Search path for ls-R files (from texmf.cnf) kdebug: = /home/joe//.texmf-config:/home/joe//.texmf-var:/home/joe//texmf:/var/lib/texmf:/var/lib/texmf:/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf-site:/usr/share/texmf:/var/cache/fonts kdebug: before expansion = $TEXMF:$VARTEXFONTS kdebug: application override path = (none) kdebug: application config file path = (none) kdebug: texmf.cnf path = $TEXMF:$VARTEXFONTS kdebug: compile-time path = /var/lib/texmf:/var/tmp/texfonts kdebug: default suffixes = ls-R ls-r kdebug: other suffixes = (none) kdebug: search only with suffix = 0 kdebug: numeric format value = 9 kdebug: runtime generation program = (none) kdebug: runtime generation command = (none) kdebug: program enabled = 0 kdebug: program enable level = 0 kdebug:start search(files=[ls-R ls-r], must_exist=1, find_all=1, path=/home/joe//.texmf-config:/home/joe//.texmf-var:/home/joe//texmf:/var/lib/texmf:/var/lib/texmf:/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf-site:/usr/share/texmf:/var/cache/fonts). kdebug:kpse_normalize_path (/home/joe//.texmf-config) => 1 kdebug:kpse_normalize_path (/home/joe//.texmf-config) => 1 kdebug:hash_lookup(/home/joe/mfput.log) => (nil) kdebug:dir_links(/home/joe/mfput.log) => -1 kdebug:hash_lookup(/home/joe/asc) => (nil) kdebug:dir_links(/home/joe/asc) => 4 <snip ~1500 lines> kdebug:hash_lookup(/home/joe/programming/lilypond) => (nil) kdebug:dir_links(/home/joe/programming/lilypond) => 23 kdebug:hash_lookup(/home/joe/programming/lilypond/config.hh.in) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/config.hh.in) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/configure) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/configure) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/python) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/python) => 4 kdebug:hash_lookup(/home/joe/programming/lilypond/python/lilylib.py) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/python/lilylib.py) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/python/musicxml.py) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/python/musicxml.py) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/python/fontextract.py) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/python/fontextract.py) => -1 <snip ~400 lines> kdebug:hash_lookup(/home/joe/programming/lilypond/page-layout-twopass.pdf) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/page-layout-twopass.pdf) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation) => 11 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user) => 4 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/lilypond.tely) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/lilypond.tely) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/fdl.itexi) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/fdl.itexi) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/scheme-tutorial.itely) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/scheme-tutorial.itely) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/henle-flat-bw.png) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/henle-flat-bw.png) => -1 <snip ~13000 lines. "source" is a link to "../..". Could this cause a loop?> kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-2856ec3395.eps) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-2856ec3395.eps) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-3c5cc96107.pdf) => (nil) kdebug:dir_links(/home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-3c5cc96107.pdf) => -1 kdebug:hash_lookup(/home/joe/programming/lilypond/Documentation/user/out-www/source/user/out-www/source/user/out-www/lily-811029da93.png) => (nil) <snip ~5000 lines. The whole file was just a second or soof output.>
_______________________________________________ lilypond-devel mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-devel