tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: unconfiguring swap at shutdown
On Tue, Sep 02, 2008 at 08:34:57AM +0200, Anders Magnusson wrote:
> Daniel Carosone wrote:
> > On Mon, Sep 01, 2008 at 09:24:19PM -0700, Jason Thorpe wrote:
> >> On Aug 31, 2008, at 12:38 AM, matthew green wrote:
> >>
> >>> swapoff == removing a swap device from use, which means, in the
> >>> current code, brining all those pages back into ram.
> >> Should not matter if all of the processes that would have cared are
> >> gone.
> >
> > The trouble is the unkillable buggers, blocking on some resource that
> > will never become available again, that have gobbled all memory and
> > are the reason for needing the rebbot in the first place.
> >
> I would consider that "special cases". In the common case turning off swap
> at reboot would be a quick thing that should be done.
One quite common case is mfs/tmpfs. You can't umount them before turning
off swap because they may be /dev, and swapoff needs /dev to be mounted.
Turning off swap before unmonting them means bringing back their pages
into ram; with the risk they don't fit in ram ...
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index