Return to BSD News archive
Xref: sserve comp.os.386bsd.questions:16982 comp.unix.bsd.freebsd.misc:48 Newsgroups: comp.os.386bsd.questions,comp.unix.bsd.freebsd.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uchinews!ncar!gatech!swrinde!pipex!oleane!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!news.belwue.de!delos.stgt.sub.org!guru.stgt.sub.org!nils From: nils@guru.stgt.sub.org (Cornelis van der Laan) Subject: Re: Disk block caching algorithm in FreeBSD 2.0/2.1 Reply-To: nils@ims.uni-stuttgart.de Sender: news@guru.stgt.sub.org (News pseudo-user) Nntp-Posting-Host: localhost.ims.uni-stuttgart.de Organization: Mehr Anarchie ! Message-ID: <NILS.95Mar11111521@guru.stgt.sub.org> References: <3iab71$5qu@gate.sinica.edu.tw> <3ivlsc$lfo@shell1.best.com> <3j3ip0$mra@helena.MT.net> <3j3kig$iuf@gate.sinica.edu.tw> <3jn3at$igp@bonnie.tcd-dresden.de> In-Reply-To: j@narcisa.sax.de's message of 9 Mar 1995 15:28:45 +0100 Date: Sat, 11 Mar 1995 10:15:21 GMT Lines: 37 In article <3jn3at$igp@bonnie.tcd-dresden.de> j@narcisa.sax.de (J Wunsch) writes: > On the other hand, i dunno about xdvi's algorithm, but last time i've > looked into all this dvi stuff i noticed that they queried several > dozens of directory/filename combinations for each file. The 4.4BSD > stat() system call is known to be slow. If you can reduce the amount > of directories being searched for a font, this can also speedup xdvi. It still does, but it helps very much to point xdvi (and TeX, dvips) directly to the directories where relevant files are stored: setenv TFMFONTS ".:/usr/local/lib/texmf/fonts/tmp/tfm" setenv TEXFONTS ".:/usr/local/lib/texmf/fonts/tmp/pk" setenv VFFONTS ".:/usr/local/lib/texmf/fonts/tmp/vf" I build all my fonts with help of MakeTeXPK in the .../tmp/pk directory, so there's no other place to look for them. Telling xdvi this fact led to a dramatic speedup; if all needed fonts are available it starts up almost instantly (<=3sec). Other paths: setenv BSTINPUTS ".:/usr/local/lib/texmf/bibtex/bst/" setenv BIBINPUTS ".:/usr/local/lib/texmf/bibtex/bib" setenv TEXINPUTS ".:/usr/local/lib/texmf/tex//" setenv MFINPUTS ".:/usr/local/lib/texmf/mf//:/usr/local/lib/texmf/fonts//" Note that the double slash at the end of a path means to search recursively in the given directory. Nils -- ---------------------------------------------------------------- Cornelis van der Laan -- nils@ims.uni-stuttgart.de -- nils@guru.stgt.sub.org # echo Knusper Knusper Knaeuschen > /etc/nologin