home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / ultrix / 9115 < prev    next >
Encoding:
Text File  |  1992-12-29  |  3.1 KB  |  66 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!dbased.nuo.dec.com!nntpd.lkg.dec.com!nntpd2.cxo.dec.com!nabeth!alan
  3. From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  4. Subject: Re: Some buffer cache questions
  5. Message-ID: <1992Dec30.010315.8079@nntpd2.cxo.dec.com>
  6. Lines: 53
  7. Sender: alan@nabeth (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  8. Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  9. Organization: Digital Equipment Corporation
  10. References: <1992Dec23.022724.27844@pony.Ingres.COM> <1992Dec23.205149.2489@nntpd2.cxo.dec.com> <1992Dec29.224612.14664@pony.Ingres.COM>
  11. Date: Wed, 30 Dec 1992 01:03:15 GMT
  12.  
  13.  
  14. In article <1992Dec29.224612.14664@pony.Ingres.COM>, rog@Ingres.COM (Roger Taranto) writes:
  15. >
  16. >In article <1992Dec23.205149.2489@nntpd2.cxo.dec.com> alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) writes:
  17. >>[ I mention large buffer caches and delay_wbuffers ]
  18. >
  19. >So, what am I supposed to be watching the delay_wbuffers for?
  20. >
  21.  
  22. This is a variable in param.c that has two values, zero and non-zero.
  23. The default is zero.  When set to zero the buffer cache code schedules
  24. data writes as buffer are filled by the user.  These writes are
  25. asynchronous.  When set to non-zero data buffers are only written
  26. when explicitly flushed (fsync(2), sync(2), etc) or a buffer is
  27. needed to satisfy a read and a dirty one is written to free up a buffer.
  28.  
  29. An affect of having delay_wbuffers set to a non-zero value is that
  30. the cache will fill up between update's calls to sync(2) and then
  31. every so often there will be a flurry of writes as all the dirty
  32. buffer are flushed.  Another affect is that the cache may have a
  33. lot of stale data sitting around in the cache between syncs, the
  34. classic UNIX buffer cache problem.
  35.  
  36. For small caches this may be an interesting problem.  As you
  37. increase the size of the cache there's the potential for more
  38. stale data to be lost or more dirty that needs to be written
  39. out.  The "flurry" of writes can look like blizzard with a
  40. big enough cache.
  41.  
  42. Related to this thread, Greg Pavlov at karloff.fstrf.org asked
  43. what sort of trouble I had with large cache configurations.  The
  44. very large cache configuration I had was a 80% of 256 MB on a
  45. DECsystem 5800.  I believe it was a single CPU system.  Whether
  46. it was an ULTRIX bug of the time, a 5800 specific problem or the
  47. version of the Striping driver I was working on the time, the
  48. system hung during one of my BIG cache flushes.  I had turned
  49. off update and wanted to see how long it took to flush the
  50. entire cache, after having filled it.  I wasn't able to reproduce
  51. the hang.  I also vaguely recall having to come up with some
  52. creative configuration lies to get a big enough system page
  53. table to map a cache that big.
  54.  
  55. FWIW: The BIG cache flush probably took around 100 seconds.  I was
  56. writing to a stripe set of RA90s all on an HSC70.  I was keeping the
  57. HSC and CIBCA-BA VERY busy...  I'd love to try it on a VAX with a
  58. CIXCD and two HSCs sometime...
  59.  
  60. >-Roger
  61. >rog@ingres.com
  62. >
  63. --
  64. Alan Rollow                alan@nabeth.cxo.dec.com
  65.  
  66.