Subject: Re: Unmount tmpfs before removing swap?
To: None <>
From: Christos Zoulas <>
List: current-users
Date: 11/30/2005 20:37:08
In article <>,
Steinar Hamre  <> wrote:
> (Michael van Elst) writes:
>> On shutdown however we do:
>> swap1                   remove swap from block devices
>Why?  Doing this at shutdown makes no sense to me.
>It *anything* using swap is left, it may be costly, or even harmful.
>There is no consistency to care for on swap. Crashdumps are the only
>thing swap may be used for when going down, but rc.d won't be used
>anyway if there is a panic.
>It seems FreeBSD is *not* removing swap from block devices at shutdown.

There is another reason to remove swap from block devices at shutdown:
raidframe. I am not advocating that this is a good thing or a good reason
to do it, just that there is other precedence. Ideally the kernel should
be automatically taking care of this.