In /etc/rc.d/init.d/halt the swap is disabled before any file systems are
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.
My NSA Security Enhanced Linux packages
Bonnie++ hard drive benchmark
Postal SMTP/POP benchmark
My home page