Red Hat Bugzilla – Bug 174000
Should umount tmpfs before swapoff
Last modified: 2014-03-16 22:57:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.92 (like Gecko)
Description of problem:
The contents of a tmpfs file system may be paged out. Paged out memory is
paged in at swapoff time, while the contents of a tmpfs are discarded when it
Putting "umount -a -t tmpfs" before the swapoff line in /etc/rc.d/init.d/halt
can potentially save hundreds of megs of data from being needlessly read from
disk. This can save battery on a laptop and will save time on any machine
while not providing any disadvantage.
If the amount of data stored on the tmpfs file system is greater than the size
of physical memory then swapoff isn't going to work.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Fixed in initscripts-8.26-1. Thanks for your report.