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: Killed?
- Message-ID: <3112@contex.contex.com>
- Date: 6 Nov 92 18:31:02 GMT
- References: <1992Nov4.065527.4867@shannon.ee.wits.ac.za> <1992Nov4.163355.12112@odin.corp.sgi.com>
- Sender: news@contex.contex.com
- Organization: Xyvision Design Systems
- Lines: 36
-
- In article <1992Nov4.163355.12112@odin.corp.sgi.com> martyi@sgi.com writes:
- >Usually the message means that the system ran out of swap space, and killed
- >the process. While it is typically the process with the high demand for
- >swap that is killed, it is not always: the system is desperate, and strikes
- >out at someone.
-
- I have had a few go-arounds on this one.
-
- Memory pigs may be killed by IRIX. The algorithm for death is
- unpublishable ( so I have been told ). The process is sent an
- uncatchable signal, is expunged, and a message is place in
- /usr/adm/SYSLOG by the kernel.
-
- Thus, the only way to detect this type of action is to make your own
- operating system of sorts. Not too difficult. Process A gets a slice
- of shared memory, and a semaphore, then it forks, sets a timer and
- stays small. Its child, B, puts the date in the slice of shm, and
- sets the semaphore, sets a timer, and grows big.
- Process A wakes, checks the shm, If date is old, A checks SYSLOG for
- message of death of B. Date not old, process A wakes, checks the shm,
- and if its ok, resets the semaphore, and sleeps.
- Process B's timer goes off, and it resets shm and semaphore.
- They continue merrily along
- Process B eventaully dies, A finds old date, no evidence in SYSLOG,
- concludes B has died a natural death, and kills itself after it cleans
- up its semaphore and shared memeory.
-
- The meaning of 'old', 'date', 'timer', and 'sleep' can be tailored as
- needed.
-
-
- --
- 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
-