Page 1 of 1

Extremely slow resume from hibernation

PostPosted: Nov 10th, '15, 21:49
by lightblue
Hi everybody,

I just reinstalled my Mageia 5 with the latest updates. Everything works just fine, except resuming from hibernation, which sometimes takes about 3-4 minutes.
Any help appreciated ;)

Details:
Ram: 8 GB
Swap: 11GB
Root: 35GB

Re: Extremely slow resume from hibernation

PostPosted: Nov 10th, '15, 22:59
by doktor5000
Do you have an SSD or a regular harddisk? Depending on the amount of memory used at the time you hibernate (hibernate to disk, I'm guessing?) it needs to save that amount to disk.
And loading a little over 8GB RAM from disk might take a short while - but usually only 30 seconds to one minute, as a rough guess.

Re: Extremely slow resume from hibernation

PostPosted: Nov 10th, '15, 23:09
by lightblue
doktor5000 wrote:Do you have an SSD or a regular harddisk? Depending on the amount of memory used at the time you hibernate (hibernate to disk, I'm guessing?) it needs to save that amount to disk.
And loading a little over 8GB RAM from disk might take a short while - but usually only 30 seconds to one minute, as a rough guess.


Hi Doktor,
and thanks for your reply,

I have both, an SSD and a regular HDD, my /root partition is on my SSD and my /home and swap partitions are on my HDD.
Is it the source of this issue?

Thanks

Re: Extremely slow resume from hibernation

PostPosted: Nov 10th, '15, 23:53
by doktor5000
It could add to it. swap is where the hibernation image is saved.
If I where you, put /, swap and a small /home on the SSD, and then add a symlink inside your /home to the HDD for folders where you need more space.
Otherwise the SSD benefits are wasted halfway.

Problem is that hibernation and suspend are hard to troubleshoot nowadays. You can try to run as root
Code: Select all
PM_DEBUG="true" pm-hibernate

to start hibernation and see whether you can find any valuable hints in /var/log/pm-suspend.log

Re: Extremely slow resume from hibernation

PostPosted: Nov 18th, '15, 18:33
by bobw
"Problem is that hibernation and suspend are hard to troubleshoot nowadays"

doktor5000, why is that? What has made the difference?

Re: Extremely slow resume from hibernation

PostPosted: Nov 18th, '15, 19:51
by doktor5000
Well, the inhibitors and hooks that trigger hibernation/suspend, and I'm not sure systemd uses pm-suspend/pm-hibernate. Why do you ask?

Re: Extremely slow resume from hibernation

PostPosted: Nov 19th, '15, 04:02
by bobw
I'm having SLEEP issues - when I put the laptop to sleep, I later open the lid and the login dialog shows up (most of the time). However, when I type in my password, there is no response on the screen - no response to the keyboard. Shutting the lid (putting it back to sleep), then re-waking it, I finally get a login that shows a response. Don't know if this is KDE related, X11, or systemd.....wondering how to troubleshoot it as well...

Re: Extremely slow resume from hibernation

PostPosted: Nov 19th, '15, 18:46
by doktor5000
Sounds more like ACPI-related. Does it happen with a different desktop environment in the same way?

Re: Extremely slow resume from hibernation

PostPosted: Nov 20th, '15, 07:02
by bobw
The desktop doesn't seem to have the issue. This HP DV5T has problems running kernels 4.1.8, 4.1.12, and now 4.1.13. All 3 hang, whereas
3.9.18 continues to boot just fine, though it takes 45 seconds to boot, which is slower than usual.

Re: Extremely slow resume from hibernation

PostPosted: Dec 2nd, '15, 17:27
by lightblue
bobw wrote:I'm having SLEEP issues - when I put the laptop to sleep, I later open the lid and the login dialog shows up (most of the time). However, when I type in my password, there is no response on the screen - no response to the keyboard. Shutting the lid (putting it back to sleep), then re-waking it, I finally get a login that shows a response. Don't know if this is KDE related, X11, or systemd.....wondering how to troubleshoot it as well...


Hi,
I exactly have this issue as well.
Thanks God, i'm not the only one with this issue ;)
So you think it's a Kernel related issue, right?
However, another problem is: some time i have this issue, sometime i don't, don't know how to replicate that :(

Re: Extremely slow resume from hibernation

PostPosted: Dec 2nd, '15, 17:33
by lightblue
Hi amigos,

doktor5000 wrote:It could add to it. swap is where the hibernation image is saved.
If I where you, put /, swap and a small /home on the SSD, and then add a symlink inside your /home to the HDD for folders where you need more space.
Otherwise the SSD benefits are wasted halfway.


I moved my SWAP to SSD and changed and fixed all things in fstab and other places,
Now resuming and hibernating works very well and fast (except that mentioned issue about non-answering keyboard)

Now can you tell me how can i move my home folder? Do the following methods work here in Mageia?
https://help.ubuntu.com/community/MoveMountpointHowto
https://help.ubuntu.com/community/Parti ... ome/Moving

or maybe there's some other better method?

Thanks

Re: Extremely slow resume from hibernation

PostPosted: Dec 2nd, '15, 18:13
by doktor5000
lightblue wrote:Now can you tell me how can i move my home folder? Do the following methods work here in Mageia?
https://help.ubuntu.com/community/MoveMountpointHowto
https://help.ubuntu.com/community/Parti ... ome/Moving



As a general hint and golden rule: Please only one problem per thread ;)

Re: Extremely slow resume from hibernation

PostPosted: Dec 2nd, '15, 18:23
by lightblue
Ok, Just your solution for moving my /home folder that you mentioned here,
Should i open new thread for that?

thanks

Re: Extremely slow resume from hibernation

PostPosted: Dec 2nd, '15, 18:45
by doktor5000
Exactly, as this thread is about hibernation, and not about moving your /home folder.