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: algorithm for kill due to memory
- Keywords: vhand killed SYSLOG
- Message-ID: <2810@contex.contex.com>
- Date: 21 Jul 92 15:10:10 GMT
- Sender: news@contex.contex.com
- Lines: 24
-
- Could anybody out there point me to information on the alogrithm used
- to erase a process that is killed due to lack of memory/swap. I am
- talking about the function associated with the kernel message
- "Process [%s] pid %d killed due to insufficient memory/swap."
- ( this is from strings /unix | fgrep -i kill ), and not the one
- associated with "Process [%s] pid %d killed due to %s (errno:%d)".
- These messages are send to SYSLOG.
-
- I would like to react to this action; the process returns with status
- indicating a signal 9 was sent to it. Is the process really given a
- signal? As there appears to be no way to prevent any particular
- process from being expunged, is there any way predict which process
- gets hit? I suspect the LRU/low priority algorithm in vhand associated
- with page theft, combined with some process size factors, is used to
- generate a kill when the free virtual memeory gets low. There appears to
- be a large chunk of kernel processing when a kill of this type happens.
-
- Information in my man pages appears very slight. Thanks.
-
- --
- 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
-