home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!iphase.com!coolcat!tdawson
- From: tdawson@iphase.com (Tim Dawson)
- Subject: Re: increasing disk cache size
- Message-ID: <tdawson.724468209@coolcat>
- Sender: news@iphase.com
- Nntp-Posting-Host: coolcat_ne0
- Organization: Interphase Corporation, Dallas Texas
- References: <1992Nov30.120726.24231@cs.cornell.edu> <1992Nov30.181445.15752@u.washington.edu> <1992Dec05.003129.29054@spillman.uucp>
- Date: Wed, 16 Dec 1992 01:10:09 GMT
- Lines: 62
-
- tye@spillman.uucp (E. Tye McQueen) writes:
-
- >flanagan@grover (Jim Flanagan) writes:
- >)ozalp@cs.cornell.edu (Ozalp Babaoglu) writes:
- >): i would like to configure a NFS server running 4.1.1 to allocate a
- >): large disk cache in memory. how does one do this and what are some
- >): guidelines for the relative size of this cache? thanks in advance.
- >)
- >) SunOS 4.x does dynamic disk caching. You don't need to worry about
- >) the size of the cache, and in fact don't have very much control over
- >) it.
-
-
- A tuning document, "Tuning the SPARCServer 490 for Optimal NFS Performance"
- by Varun Mehta and Rajiv Khemani from Sun gives the following procedure
- to tune the buffer cache size, and I have used this routinely and it does
- work well:
-
-
-
- The problem is that NBUF IS defined in SunOS, but only at the object level.
- You can change it as follows:
-
-
- #!/bin/sh
- adb -w /vmunix << EOF
- nbuf?W 0x40
- EOF
-
- Our recommendations are to use 64 (0x40) for up to 4 drives, and 112 (0x70) if
- you have more than 4.
-
- To monitor cache performance and hit ratios:
-
-
- #!/bin/sh
- adb -k /vmunix /dev/mem << EOF
- =n"Buffer Cache Statistics Since Last Boot"
- ="_______________________________________"
- nbuf/D"Buffer Cache Size"n
- bstats/D"total buffer cache read requests"n
- +/D"hits in cache"n
- +/D"times an ages buf was allocated"n
- +/D"times an lru buf was allocated"n
- +/D"times had to sleep for a buf"n
- EOF
-
- Based on this, my 4/470 running an unpatched buffer size, only has 19
- configured. My new 4/490 will run 112, and the above verifies this figure.
-
- I hope this helps -
- --
- ================================================================================
- Tim Dawson (tdawson@iphase.com) Group Leader, System Administration/Software
- Interphase Corporation - MIS Bellnet: (214)-919-9303, FAX: (214)919-9200
- 13800 Senlac, Dallas, Texas, 75234 ---< This space for rent cheap . . . . >---
-
- --
- ================================================================================
- The optionions expressed above do not neccesarily represent those of my
- employer - as a matter of fact, sometimes they wish I would shut up!
- Tim Dawson (tdawson@iphase.com) Group Leader, System Administration/Software
-