UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You mean that the recent update have installed an update for the kernel and this may have caused the problem? I am afraid to handle kernel and back to a previous version (if necessary). I would not want to mess up
You mean that the recent update have installed an update for the kernel and this may have caused the problem? I am afraid to handle kernel and back to a previous version (if necessary). I would not want to mess up
free -h
total used free shared buff/cache available
Mem: 7,7G 1,1G 5,5G 236M 1,1G 6,1G
Swap: 7,6G 0B 7,6G
why is your swap size 7.6G, when your physical memory is 7.7G?
afaiu, hibernate needs a swap size at least the same size as physical RAM!!! (please re-read the ubuntu article to get more definite advice on this)
fixing that will be tricky; you have to boot live and resize the swap partition, likely make more space by shrinking another partition first.
but i think you should have a closer look at this before filing a bug.
why is your swap size 7.6G, when your physical memory is 7.7G?
afaiu, hibernate needs a swap size at least the same size as physical RAM!!! (please re-read the ubuntu article to get more definite advice on this)
fixing that will be tricky; you have to boot live and resize the swap partition, likely make more space by shrinking another partition first.
but i think you should have a closer look at this before filing a bug.
You are right ondoho! (I have just read here https://help.ubuntu.com/community/SwapFaq).
Please, can you send me a "safely" way to resize my swap partition? A link to a page or a clear procedure.
Thanks a lot.
I'm not convinced that is a real issue here. I have a Toshiba laptop with 4GB RAM and 2GB swap partition. I don't normally hibernate the machine, but I've had no issues when I do, and that is because the used memory is nowhere near the swap size generally. The OP's machine is nearly 1:1 anyway, and the symptoms suggest something else.
Quote:
About swap partition/file size
Even if your swap partition is smaller than RAM, you still have a big chance of hibernating successfully. According to kernel documentation:
/sys/power/image_size controls the size of the image created by the suspend-to-disk mechanism. It can be written a string representing a non-negative integer that will be used as an upper limit of the image size, in bytes. The suspend-to-disk mechanism will do its best to ensure the image size will not exceed that number. However, if this turns out to be impossible, it will try to suspend anyway using the smallest image possible. In particular, if "0" is written to this file, the suspend image will be as small as possible. Reading from this file will display the current image size limit, which is set to 2/5 of available RAM by default.
You may either decrease the value of /sys/power/image_size to make the suspend image as small as possible (for small swap partitions), or increase it to possibly speed up the hibernation process.
See Systemd#Temporary files to make this change persistent.
I'm not convinced that is a real issue here. I have a Toshiba laptop with 4GB RAM and 2GB swap partition. I don't normally hibernate the machine, but I've had no issues when I do, and that is because the used memory is nowhere near the swap size generally. The OP's machine is nearly 1:1 anyway, and the symptoms suggest something else.
Guys,
in a discussion I opened some days ago, on ask Ubuntu, a user wrote to me that the problem I encountered seem to be a bug, as reported here:https://bugs.launchpad.net/ubuntu/+s...4?comments=all. Solution is to downgrade to kernel version 4.10.0-42-generic, but, in this case, I'll lose patch for Meltdown and some Spectre mitigations.
So, I think the best I can do is to disable hibernation (keeping only suspension). You know how to do it?
Thanks to all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.