From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,beff174e0d328d5f X-Google-Attributes: gid1164f8,public From: dsr@lns598.lns.cornell.edu (Daniel S. Riley) Subject: Re: Low swap space on DEC 3000 Alpha Date: 1995/04/02 Message-ID: #1/1 X-Deja-AN: 100717466 references: <3l97pi$4ms@news.belwue.de> organization: Wilson Lab, Cornell U., Ithaca, NY 14853 newsgroups: comp.sys.dec In article , saunders@castor.che.wisc.edu (Brian Saunders) writes: saunders> You answered my question, more or less, but you haven't saunders> explained to me how OSF/1 chooses which jobs to kill when saunders> there is a swap error. It would seem a random scheme (which saunders> is what is hinted) would be as dangerous, if not more, than saunders> killing the offending process. I would expect that what is killed *is* the "offending process", but the notion of what is the offending process differs between eager and lazy mode. In "eager" mode, the offending process will always be one that is requesting additional virtual memory, since all current allocations have backing store pre-allocated. In "lazy" mode, I would guess that it would be the next process to fault on an unallocated page while the system is out of VM. The fault could be on a page in an address space that was allocated long ago or on a copy-on-write page, so while this selection is not random as far as the OS is concerned, it might as well be for all the user (or system administrator) can tell. It could also conceivably be the process that owns the next page the OS tries page out while out of VM, but that seems like a poorer and less likely choice to me--but I suppose it all depends on when the OS realizes it is completely out of VM and what the recovery path is at that point. You might think this should be fixable by having the OS kill any process requesting address space after the total free drops below some threshold, but the existence of sparsely populated address spaces and COW pages complicates things--it isn't obvious to me that there is a 100% solution that isn't identical to "eager" mode. -- Dan Riley Internet: dsr@lns598.lns.cornell.edu Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) "Distance means nothing/To me." -Kate Bush