From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,124868e643b652af X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-06 10:13:47 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!news From: mliggett@onyx.chem.indiana.edu (Matthew Liggett) Subject: Re: swap erosion In-Reply-To: chris@rivers.dra.hmg.gb's message of 3 Jun 1994 12:41:56 GMT Message-ID: Sender: news@usenet.ucs.indiana.edu (USENET News System) Nntp-Posting-Host: onyx.chem.indiana.edu Organization: Very little. References: <2sl08s$1hl@coranto.ucs.mun.ca> <2sn8ek$eak@arrow.dra.hmg.gb> Date: Mon, 6 Jun 1994 16:51:23 GMT >>>>> "chris" == Christopher Samuel writes: chris> In article <2sl08s$1hl@coranto.ucs.mun.ca> of chris> comp.unix.osf.osf1, andrew@bransle (Andrew Draskoy) doodled: >> The method can be changed by removing the symbolic link >> "/sbin/swapdefault". Terminology notes: The method of swap allocation with the /sbin/swapdefault symlink in place is reffered to "immediate" mode. The other method (without the symlink there) is "deferred" mode. Immediate mode is the default configuration (atleast on 1.3 systems). In immediate mode, the kernel attempts to determine and pre-allocate the amount of space required for each process and to play a "keep-ahead" kind of game. In deferred mode, swap space is allocated dynamically based on the needs of processes. It is possible to run out of free pages in this mode. In this case, the system will kill a process to free a page(s). chris> I suspect this also caused a couple of panic's on our OSF/1 chris> 2.0 Alpha here. From reading the runes I guess the sequence chris> of events to be something along the lines of: chris> Someone tries to start a process Kernel tries to pre-allocate chris> swap for it Kernel finds no swap available to pre-allocate chris> Kernel tries to kill process Whilst signalling the process chris> the kernel tries to allocate some memory The alloc fails The chris> kernel panic's This does not jive. In immediate mode, as I understand the DEC documentation, the system will not randomly kill processes. This only happens in deffered mode. chris> Since I've turned off DECs braindead swap preallocation we've chris> not had a recurrence of it. This is interesting. We had to turn off immediate mode because we did not have swap >= phys. RAM. You cannot get total use out of your RAM in immediate mode without enough swap space to match it (braindead). Now that we have ~2xRAM for swap space, I should probably switch back to deferred just to avoid the risk of randomly killing processes. Comments? Have I got it all jumbled? -- matt liggett '59 Austin Mini 850 (If only it ran...) (mliggett@indiana.edu) '75 Suzuki GT250 (Mutant Chainsaw) -= GAT =- '79 Honda Civic 1200 (Rust Never Sleeps) d-- -p+ c++(+++) l++ u++ e+ m* s--/ n+(---) h-- f- !g w++ t+ r(-) y++(*)