home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / ultrix / 6893 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.9 KB  |  72 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth!alan
  3. From: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  4. Subject: Re: kernel configuration recommendations?
  5. Message-ID: <1992Sep14.203022.13569@nntpd2.cxo.dec.com>
  6. Lines: 59
  7. Sender: alan@nabeth (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  8. Reply-To: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  9. Organization: Digital Equipment Corporation
  10. References: <1992Sep11.185331.1@qucdnee.ee.queensu.ca> <KTGQBV15@cc.swarthmore.edu>
  11. Date: Mon, 14 Sep 1992 20:30:22 GMT
  12.  
  13.  
  14. In article <KTGQBV15@cc.swarthmore.edu>, hirai@cc.swarthmore.edu (Eiji Hirai) writes:
  15. >
  16. >rick@qucdnee.ee.queensu.ca writes:
  17. >> if there's any general advice to be had i'd appreciate it a lot.
  18. >
  19. >I've heard some folks say that enabling cache_bufcache in
  20. >/usr/sys/conf/mips/param.c is an easy win:
  21. >
  22. >> int     cache_bufcache = 1;
  23. >
  24. >I've had this kernel running on our DEC 5000/200, Ultrix 4.2a systems for a
  25. >month now.  However, don't blame me if this crashes your system. :-)
  26. >
  27.  
  28. Setting cache_bufcache is recommended (supported) in V4.3.  It works
  29. nicely with the I/O enhancer support.  I have also used it on V4.2
  30. without much trouble.
  31.  
  32. On the subject; you can change the behaviour of writting from the
  33. buffer cache using delay_wbuffers.  You may not want to though, it
  34. will depend on the application and the result that you are trying
  35. to achieve.
  36.  
  37. There are three choices for file system writes.
  38.  
  39. 1.  Synchronous.  There are a number of ways to do this.  See the
  40.     manual pages for fsync(2), fcntl(2), mount(8).
  41.  
  42. 2.  Non-delayed writes.  This is the default.  When a high level file
  43.     system transfer ends on a block boundry the block will be written
  44.     one of two ways.  The non-delayed way starts the write and continues
  45.     on.  A read of the buffer will block until the write is done.
  46.  
  47. 3.  Delayed writes.  The other case of #2.  The buffer is just marked
  48.     as being done, eligible for delayed write and released.  It will
  49.     be written during a sync(2) or fsync(2), or when a buffer is needed
  50.     and it has to be flushed before use by someone else.
  51.  
  52.     Doing writes this way it is possible to write a large file, just
  53.     smaller than the buffer cache, that causes very little I/O until
  54.     you flush the cache somehow.  This sort of behaviour might be
  55.     useful for temporary files that don't really need to be saved
  56.     through system crashes.  It's possible the lifetime of the time
  57.     is short enough the data will never be written to disk.
  58.  
  59.     However if you do intended to really save the data, you're going
  60.     to have to pay for the write eventually.  Delayed writes are much
  61.     safer.
  62.  
  63.     I believe the documentation on the I/O enhancer recommends that
  64.     you DO NOT set delay_wbuffers. 
  65.  
  66. >--
  67. >Eiji Hirai <hirai@cc.swarthmore.edu>
  68. >
  69. --
  70. Alan Rollow                alan@nabeth.cxo.dec.com
  71.  
  72.