home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9348 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.2 KB  |  51 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!mskucher
  3. From: mskucher@math.uwaterloo.ca (Murray S. Kucherawy [MFCF])
  4. Subject: AIX bug (was Re: Help Needed - program SIGKILLing itself)
  5. Message-ID: <Bu09yt.CsI@math.uwaterloo.ca>
  6. Organization: Math Faculty Computing Facility, University of Waterloo, Canada
  7. References: <BturB1.8Ir@math.uwaterloo.ca> <1992Sep2.172426.29972@awdprime.austin.ibm.com>
  8. Date: Thu, 3 Sep 1992 14:08:53 GMT
  9. Lines: 40
  10.  
  11. I can't reply to the address "scott@austin.ibm.com" so I have to followup
  12. instead of reply privately.  My apologies.
  13.  
  14. scott@austin.ibm.com writes:
  15. >To fix the problem you need to find out why your program is allocating so
  16. >much memory/paging space.  If it's not due to a faulty pointer but is
  17. >"normal" behavior for your program then you need to increase the amount of
  18. >paging space in the system using either 'mkps' or 'chps'.
  19.  
  20. Actually, Toronto's support centre just yesterday filed a problem report
  21. with your offices to report that putuserattr() is sucking up page space
  22. like crazy.  My guess is that there's a lot of space it mallocs but doesn't
  23. free up again.  This code segment demonstrates:
  24.  
  25. #include <usersec.h>
  26.  
  27. main () {
  28.     setuserdb(S_WRITE);
  29.     while(1) {
  30.         putuserattr("nobody",S_GECOS,"NOBODY",SEC_CHAR);
  31.         putuserattr("nobody",NULL,NULL,SEC_COMMIT);
  32.     }
  33. }
  34.  
  35. This will kill itself after about two minutes (16Mb RAM, 32Mb page).  Toronto
  36. people reproduced the problem and sent it down your way.  A program like the
  37. one above should suck up very little page space when you consider what it does
  38. but certainly less than the 22Mb of page space it is consuming.
  39.  
  40. I'm glad your offices are on Internet - maybe you could allow me to ftp
  41. a fix as soon as you have one?  This affects about 4500 users, and we'd
  42. like to get it working soon.
  43.  
  44. -- 
  45.  
  46. -- Murray S. Kucherawy ----------------------------------------+--------------
  47. Software Systems Co-op, Math Faculty Computing Facility [MFCF] | This is a
  48. University of Waterloo, Ontario, Canada                        | machine that
  49. E-mail: mskucherawy@{math,watdragon}.UWaterloo.ca              | goes PING!
  50. ---------------------------------------------------------------+--------------
  51.