-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
-
Funtoo current amd64
On heavily loaded system with lots of swap used (VM/LXC host, database server...etc)
while performing shutdown, openrc starts turning off swapfile/swap before shutting down services (such as libvirtd, lxc ....).
openrc is currently doing this:
1.) turnoff swap (swapoff -a ....)
2.) shutdown ordinary services
Current default results in "swapstorm" during shutdown (or. OOM being ocasionally invoked)
Proper way of doing things should be:
1.) shutdown all ordinary services (to "free" RAM/swap)
2.) turn off swapfile/swap
I suspect that these files need fixing:
/etc/init.d/swap
/etc/init.d/swapfiles