home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13033 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  3.6 KB

  1. Xref: sparky comp.unix.questions:13033 comp.unix.sysv386:16290 comp.unix.sys5.r4:448 comp.unix.wizards:4553
  2. Path: sparky!uunet!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet!dsbc!mbm
  3. From: mbm@dsbc.icl.co.uk (Malcolm Mladenovic)
  4. Newsgroups: comp.unix.questions,comp.unix.sysv386,comp.unix.sys5.r4,comp.unix.wizards
  5. Subject: Re: Unix System Crashing!! Why?
  6. Message-ID: <900@dsbc.icl.co.uk>
  7. Date: 6 Nov 92 14:29:02 GMT
  8. References: <1992Nov3.130757.20385@cbfsb.cb.att.com> <1992Nov5.140301.20874@urbana.mcd.mot.com>
  9. Followup-To: comp.unix.sys5.r4
  10. Organization: ICL, Bracknell, UK
  11. Lines: 62
  12.  
  13. In article <1992Nov5.140301.20874@urbana.mcd.mot.com> avonruff@urbana.mcd.mot.com (Al Von Ruff) writes:
  14. >In article <1992Nov3.130757.20385@cbfsb.cb.att.com> nll@cbnewsb.cb.att.com (neal.l.leitner) writes:
  15. >>
  16. >>I have been having a problem with my Unix machine crashing every once in
  17. >>a while.  I was hoping someone could shed some light on the subject.
  18. >>[out of msg blocks on an svr4/i486 system]
  19.  
  20. >You have run out of STREAMS resources. There are two possible reasons
  21. >for your problem:
  22. >
  23. >1) strthresh is tuned too low for your system use. If your machine
  24. >   crashes at approximately the same time of day (i.e: during backups,
  25. >   while sending/receiving news, during high UUCP traffic, running heavy
  26. >   networking loads), then this is probably the case. strthresh is a
  27. >   kernel tunable which designates the maximum number of bytes which
  28. >   the STREAMS subsystem is allowed to use. This parameter has a
  29. >   notoriously low default setting (around 2 Megabytes). I would recommend
  30. >   setting strthresh to a value of 50 percent of physical memory.
  31.  
  32. This seems an unnecessarily high a value for large configurations - the machine
  33. that I'm posting from has strthresh set to 4MB.  It is a dual processor sparc
  34. running svr4 with 128MB of physical memory.  The machine is regularly running
  35. with large amounts of networking traffic but no STREAMS resources problems.
  36. This ought to be sufficient unless you are running with many TCP connections
  37. doing bulk data transfer at the same time.  [It doesn't actually do any harm
  38. to have a large value, if you do have a problem it will increase the length
  39. of time the system stays up, though performance will degrade over time since
  40. less and less memory will be available for the buffer cache and other uses.]
  41.  
  42. However,
  43.  
  44. >2) You have a STREAMS memory leak. If your machine crashes at approximately
  45. >   the same uptime value (for instance: after 4 days of run time), then this
  46. >   is probably the case. In this case, you can't do anything except report
  47. >   the bug to your vendor. We have found and plugged a number of STREAMS leaks
  48. >   in our product - your implementation may still contain these leaks.
  49.  
  50. this is only since we fixed a number of these.  We did have problems prior to
  51. that.   It is possible to get an idea of the behaviour of the STREAMS subsystem
  52. with respect to memory by checking the value of the kernel variable Strcount.
  53. This is the counter that strthresh is a limit on.
  54.  
  55. # crash
  56. ....
  57. > od -h Strcount
  58. aaaaaaaa: vvvvvvvv
  59. > od -h strthresh
  60. bbbbbbbb: wwwwwwww
  61. > q
  62. #
  63.  
  64. will give you some idea of the situation.  If Strcount increases over time
  65. with no corresponding change in the system workload you probably have a
  66. memory leak in either the STREAMS subsystem itself or in one of the STREAMS
  67. modules or drivers.   If this is the case you need to report the problem
  68. to your vendor.  It may also aloow you to do planned, clean reloads at a more
  69. convenient time than just when the system locks up.
  70.  
  71. Note: I have set followups to only comp.unix.sys5.r4 since my comments are
  72. specific to that version and are not limited to the [34]86-based platforms.
  73.  
  74. -Malcolm
  75.