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