Re: [RFC] [PATCH] VM & VFS changes

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Wed, 1 Jun 2005 11:42:07 -0400 (EDT)
On Wed, 1 Jun 2005, Alexander Leidinger wrote:

> Poul-Henning Kamp <phk_at_phk.freebsd.dk> wrote:
>
>> Maybe the simplest solution is also the best:  keep track of the
>> dependencies and do the cleanup leaf->root on the resulting tree.
>
> How many userland processes have to be running and consuming memory which
> isn't available as physical RAM at this point in the shutdown sequence?
>
> Wouldn't a loop like the following be enough?
> while swap
>     umount unbusy-FS
>     swap-off swap
>
> This assumes that swap-off doesn't turns off the swap if it isn't able to put
> everything back into other swap or physical RAM areas.

I would think that one would want to disable swapping before the unmount 
of filesystems for the very fact you could have vnode-backed swapspace in 
use. Once the system is swapless at this point in shutdown, there should 
no longer be any active vnodes on mounted filesystems (From my testing, 
the only exception at this point in time is devfs. I am working on another 
patch to address this).

Andy

/*  Andre Guibert de Bruet  * 6f43 6564 7020 656f 2e74 4220 7469 6a20 */
/*   Code poet / Sysadmin   * 636f 656b 2e79 5320 7379 6461 696d 2e6e */
/*   GSM: +1 734 846 8758   * 5520 494e 2058 6c73 7565 6874 002e 0000 */
/* WWW: siliconlandmark.com *      Tormenting bytes since 1980.       */
Received on Wed Jun 01 2005 - 13:42:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC