From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cd4ecd61078a8156 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-06 06:17:17 PST Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!sol.ctr.columbia.edu!caen!crl.dec.com!crl.dec.com!jg From: jg@crl.dec.com (Jim Gettys) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF1 Swapping Date: 6 Jan 1994 14:13:37 GMT Organization: DEC Cambridge Research Lab Distribution: world Message-ID: <2gh6ah$gkq@quabbin.crl.dec.com> References: <2gh4fm$jtu@unixfe.rl.ac.uk> NNTP-Posting-Host: jg.crl.dec.com Immediate swap space allocation means that the system allocates swap space on disk at the time the process allocates more VM; if there are any problems, that process gets notified, and possibly terminated (by default). This also means that the total VM of all processes cannot exceed the available swap space. "Lazy" or "deferred" allocation means that swap space is allocated at the time the system actually needs to use more main memory for some process (i.e. decides it has to page something out). This means that the total VM of all processes can equal the sum of all available swap space + main memory. This results in less disk required to support the processes; you only need the amount of disk space that is required to hold the VM being paged out. The problem with "deferred" allocation is that at the time of allocation, you don't know what process to penalize; the system must get memory from somewhere (or would deadlock), so has to choose some process to kill; and it isn't as smart as a person might be about what it chooses :-). So lazy or deferred allocation is most suitable on single user systems where you are the only person that would be affected; on a multiuser system it is pretty unfriendly to have to terminate someone else's process for reasons outside of their control. And on production systems where you want to guarantee that once a process starts, it will continue indefinately, you'd better be using immediate allocation. This is why we ship our OSF with immediate allocation by default. - Jim -- Digital Equipment Corporation Cambridge Research Laboratory