On Thu, Apr 28, 2016 at 11:59 AM, Per Jessen
wrote: Dave Howorth wrote:
Swapoff for swap partitions seems to be never used in system shutdown scripts. I use Swapoff mostly for testing. But swapoff is called at shutdown for swap files (as opposed to swap
On 2016-04-28 09:22, Bjoern Voigt wrote: partitions). I looked it up - in systemd-210 in ./src/core/umount.c, swapoff() is called, as far as I can tell regardless of whether it is a file or a device. It's possible there is a check on file or partition somewhere else, I could have missed it. Thanks for this code review. No, there is no such check. But this happens very late, when almost everything has already been stopped or killed, so swap space is almost unused. Time needed for swapoff is directly proportional to amount of swap space in use. Then we have a good "real life" use case. Swapoff seems to delay the shutdown (and maybe the restart) process. This would explain my observations. Sometimes shutdown is fast, sometimes slow and sometimes I
Andrei Borzenkov wrote: think, it will never finish and I do a hard power-off. I should write down the memory situation (output of "free") and the shutdown times. The next question is if this is a SystemD or Kernel problem. Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org