swapoff

Russell Coker russell at coker.com.au
Wed Sep 7 01:47:00 UTC 2005


In /etc/rc.d/init.d/halt the swap is disabled before any file systems are 
umounted.

Is there any reason why we can't have "umount -a -t tmpfs" before doing the 
swapoff?  If you have a tmpfs file system with a large amount of data (more 
than RAM) then "swapoff -a" is not going to give a good result.

With a default configuration /dev/shm will be half of RAM, which on a modern 
laptop will be at least 256M and maybe 512M.  If that has been paged out (EG 
from running memory hungry programs such as Firefox) then paging that in from 
a slow laptop hard disk (and needlessly draining the battery) on shutdown is 
a bad idea when the data can be discarded by umounting the file system.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




More information about the devel mailing list