Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-2523

sys-apps/openrc + shutdown + swap/swapfile

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal 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

            drobbins drobbins
            havis havis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: