VM pager subsystem shutdown?
Andre Guibert de Bruet
andy at siliconlandmark.com
Mon May 9 22:12:34 PDT 2005
Hi,
Upon looking at the boot(9) code in kern_shutdown.c, it occured to me that
there doesn't seem to be shutdown code for the VM pager subsystem. Is this
done on purpose? If not, is creating a global-scope function in
vm/swap_pager.c that iterates over the swdevt's in the LISTQ and feeds
them swap_pager_swapoff() the simplest of ways of going about this?
I stumbled upon this while analyzing the various vnodes still open at
shutdown during the call to vfs_unmountall (See the patch in the "The
"unmount of /dev failed (BUSY)" message, explained" thread). The only
reason for the reference to /dev/amrd0s1b that I can think of would be the
use of swap, and disabling it in fstab and re-performing the test confirms
this.
Please be gentle, I am still learning about our VM subsystem... :-)
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. */
More information about the freebsd-current
mailing list