Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!jeremy@perf2.asd.sgi.com From: jeremy@perf2.asd.sgi.com (Jeremy Higdon) Newsgroups: comp.sys.sgi Subject: Re: Tuning the buffer cache Message-ID: <106128@sgi.sgi.com> Date: 24 May 91 21:26:29 GMT References: <9105240159.AA10726@koko.pdi.com> Sender: guest@sgi.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 29 In article <9105240159.AA10726@koko.pdi.com>, shoshana@pdi.UUCP (Shoshana Abrass) writes: > > We're thinking of tuning the buffer cache to speed disk i/o. > We often have to read two large files alternately (for example, > a geometry model, then a texture map, then the model, then the > map, etc...) and we'd like to keep both (or many) of these > files in the cache, if possible. (Yes, we're looking at alternate > schemes, but this is a fast hack. The two files are read by > separate processes that exit after reading, BTW.) > > The 'documentation' in /usr/sysgen/master.d/master.c says > > #define NBUF 0 /* # buffers in disk buffer cache */ > /* autoconfigure if 0 */ > > What does 'autoconfigure' mean? does this configure when you > compile the kernel, or does it dynamically change depending on > what your file usage profile is? And what's a real number that > I can set this to, or how can I find out what it's autoconfigured > to now? In IRIX 3.3 and beyond, cached file data does not use a buffer header. Thus, if you have enough memory, your files will stay cached automatically. Basically, whatever isn't in use by the kernel, user programs, etc. is available for caching disk files. Currently, autoconfiguring for the number of buffers is done at boot time and depends on the amount of memory on your machine. If I remember correctly, it is 50 + (25 per 8MB).