home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!contex!marvin.contex.com!frank
- From: frank@marvin.contex.com (Frank Perdicaro)
- Newsgroups: comp.sys.sgi
- Subject: Re: Not enough swap space
- Message-ID: <2884@contex.contex.com>
- Date: 20 Aug 92 13:55:28 GMT
- References: <7085@charon.cwi.nl>
- Sender: news@contex.contex.com
- Organization: Xyvision Design Systems
- Lines: 38
-
- In article <7085@charon.cwi.nl> robertl@cwi.nl (Robert van Liere) writes:
- >
- >A long, long time ago (i.e. in the 3.3.? days) Lance M Option @ NIH
- >wrote :
- >
- >> SGI System Gurus:
- >> We are experiencing problems with "malloc()". It seems
- >> that if an amount of memory greater than the sum of
- >> free memory and free swap space is requested, the malloc()
- >> succeeds, but the program is killed by the OS when the
- >> memory is used. How can this condition be caught? Can't
- >> the OS give some indication to the user of why his proc died?
- >
- >We are currently experiencing this behavior as well. Can this condition
- >be caught in 4.0.5 ? If not, is there something else we can do to avoid
- >these (SysV related) "problems".
- >
- If you have an archive of this newsgroup, see the discussing between
- Dave Olsen and I about this. In general, kernel kills of this type
- are not predictable, and not recoverable.
-
- The behavior can be turned off with a kernel variable that I do not
- remember the name of.
-
- There are techniques to deal with this problem. Have a child process
- do work, but send the parent a timestamped message every now and then
- in a piece of shm. If the parent finds the message old, and
- /usr/adm/SYSLOG says the child was killed by the kernel for being a
- pig, parent can make a new child, and restart. Ugly but
- bulletproof. Keeping the parent just a skeleton insures that only
- the child would get killed, not the parent. An operating system
- inside and operating system......
-
- --
- Frank E Perdicaro, Systems Admin, etc. Xyvision Color Systems
- Legalize guns, drugs and cash...today. 101 Edgewater Drive
- inhouse: frank@marvin, x5572 Wakefield MA
- outhouse: frank@contex.com, 617-245-4100x5572 018801285
-