home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / admin / 9475 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.6 KB  |  75 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!iphase.com!coolcat!tdawson
  3. From: tdawson@iphase.com (Tim Dawson)
  4. Subject: Re: increasing disk cache size
  5. Message-ID: <tdawson.724468209@coolcat>
  6. Sender: news@iphase.com
  7. Nntp-Posting-Host: coolcat_ne0
  8. Organization: Interphase Corporation, Dallas Texas
  9. References: <1992Nov30.120726.24231@cs.cornell.edu> <1992Nov30.181445.15752@u.washington.edu> <1992Dec05.003129.29054@spillman.uucp>
  10. Date: Wed, 16 Dec 1992 01:10:09 GMT
  11. Lines: 62
  12.  
  13. tye@spillman.uucp (E. Tye McQueen) writes:
  14.  
  15. >flanagan@grover (Jim Flanagan) writes:
  16. >)ozalp@cs.cornell.edu (Ozalp Babaoglu) writes:
  17. >): i would like to configure a NFS server running 4.1.1 to allocate a
  18. >): large disk cache in memory.  how does one do this and what are some
  19. >): guidelines for the relative size of this cache?  thanks in advance.
  20. >)
  21. >)  SunOS 4.x does dynamic disk caching. You don't need to worry about
  22. >)  the size of the cache, and in fact don't have very much control over
  23. >)  it.
  24.  
  25.  
  26. A tuning document, "Tuning the SPARCServer 490 for Optimal NFS Performance"
  27. by Varun Mehta and Rajiv Khemani from Sun gives the following procedure
  28. to tune the buffer cache size, and I have used this routinely and it does
  29. work well:
  30.  
  31.  
  32.  
  33. The problem is that NBUF IS defined in SunOS, but only at the object level.  
  34. You can change it as follows:
  35.  
  36.  
  37. #!/bin/sh
  38. adb -w /vmunix << EOF
  39. nbuf?W 0x40
  40. EOF
  41.  
  42. Our recommendations are to use 64 (0x40) for up to 4 drives, and 112 (0x70) if
  43. you have more than 4.  
  44.  
  45. To monitor cache performance and hit ratios:
  46.  
  47.  
  48. #!/bin/sh
  49. adb -k /vmunix /dev/mem << EOF
  50. =n"Buffer Cache Statistics Since Last Boot"
  51. ="_______________________________________"
  52. nbuf/D"Buffer Cache Size"n
  53. bstats/D"total buffer cache read requests"n
  54. +/D"hits in cache"n
  55. +/D"times an ages buf was allocated"n
  56. +/D"times an lru buf was allocated"n
  57. +/D"times had to sleep for a buf"n
  58. EOF
  59.  
  60. Based on this, my 4/470 running an unpatched buffer size, only has 19 
  61. configured.  My new 4/490 will run 112, and the above verifies this figure.
  62.  
  63. I hope this helps - 
  64. -- 
  65. ================================================================================
  66. Tim Dawson (tdawson@iphase.com)     Group Leader, System Administration/Software
  67. Interphase Corporation - MIS        Bellnet: (214)-919-9303, FAX: (214)919-9200
  68. 13800 Senlac, Dallas, Texas, 75234  ---< This space for rent cheap . . . . >---
  69.  
  70. -- 
  71. ================================================================================
  72. The optionions expressed above do not neccesarily represent those of my 
  73. employer - as a matter of fact, sometimes they wish I would shut up!
  74. Tim Dawson (tdawson@iphase.com)     Group Leader, System Administration/Software
  75.