> /sys/power/image_size represents the required amount of space for the image
no it doesn't: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-power "The kernel's suspend-to-disk code will do its best to ensure the image size will not exceed this number. However, if it turns out to be impossible, the kernel will try to suspend anyway using the smallest image possible." "Reading from this file will display the current image size limit, which is set to around 2/5 of available RAM by default." > /dev/dm-2: is a candidate device. > /dev/sda2: ignoring device with lower priority > /sys/power/resume is not configured; attempting to hibernate with path: > /dev/dm-2, device: 253:2, offset: 0, priority: -2 > Not enough swap for hibernation, Active(anon)=1134696 kB, size=1003516 kB, > used=0 kB, threshold=98% yeah, this is the problem; the checks in sleep-config.c first look for the highest-priority swap device that is valid as a target, but doesn't actually check if it's large enough for all Active(anon) pages until *after* selecting which swap device to use. Probably need to open an upstream bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1910252 Title: `systemctl hibernate` incorrectly reports "Not enough swap space for hibernation" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1910252/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
