swapoff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux