I've also been experiencing a similar issue for some time - occurring 
intermittently, not when I'm using only a small amount of RAM - where s2disk 
would hang on writing the image:
s2disk: Saving xxxx image data pages (press backspace to abort) ...   0%

On Ubuntu 18.04 (currently 4.18 kernel)

In case it is of use to anyone else who finds this bug, I was able to
work around this by writing a Hibernate script and assigning a keyboard
shortcut to it:

#!/bin/sh
echo Unlimiting IO cache...
sudo sysctl -w vm.dirty_ratio=100 
sudo sysctl -w vm.dirty_background_ratio=100

sleep 5
sudo s2disk

echo Re-limiting IO cache...
sudo sysctl -w vm.dirty_background_ratio=10
sudo sysctl -w vm.dirty_ratio=20

This disables cached disk IO for the hibernate and restores it after
resume.  It seems to work reliably for the past few weeks for me anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1819915

Title:
  s2disk freezes at saving image to disk (hibernation)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819915/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to