Extremely slow resume from hibernation

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Extremely slow resume from hibernation

Postby lightblue » Nov 10th, '15, 21:49

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Extremely slow resume from hibernation

Postby doktor5000 » Nov 10th, '15, 22:59

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow resume from hibernation

Postby lightblue » Nov 10th, '15, 23:09

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Extremely slow resume from hibernation

Postby doktor5000 » Nov 10th, '15, 23:53

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow resume from hibernation

Postby bobw » Nov 18th, '15, 18:33

"Problem is that hibernation and suspend are hard to troubleshoot nowadays"

doktor5000, why is that? What has made the difference?
bobw
 
Posts: 76
Joined: May 30th, '12, 19:05

Re: Extremely slow resume from hibernation

Postby doktor5000 » Nov 18th, '15, 19:51

Well, the inhibitors and hooks that trigger hibernation/suspend, and I'm not sure systemd uses pm-suspend/pm-hibernate. Why do you ask?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow resume from hibernation

Postby bobw » Nov 19th, '15, 04:02

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...
bobw
 
Posts: 76
Joined: May 30th, '12, 19:05

Re: Extremely slow resume from hibernation

Postby doktor5000 » Nov 19th, '15, 18:46

Sounds more like ACPI-related. Does it happen with a different desktop environment in the same way?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow resume from hibernation

Postby bobw » Nov 20th, '15, 07:02

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.
bobw
 
Posts: 76
Joined: May 30th, '12, 19:05

Re: Extremely slow resume from hibernation

Postby lightblue » Dec 2nd, '15, 17:27

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 :(
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Extremely slow resume from hibernation

Postby lightblue » Dec 2nd, '15, 17:33

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Extremely slow resume from hibernation

Postby doktor5000 » Dec 2nd, '15, 18:13

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 ;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Extremely slow resume from hibernation

Postby lightblue » Dec 2nd, '15, 18:23

Ok, Just your solution for moving my /home folder that you mentioned here,
Should i open new thread for that?

thanks
Last edited by doktor5000 on Dec 2nd, '15, 18:44, edited 1 time in total.
Reason: removed fullquote
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Extremely slow resume from hibernation

Postby doktor5000 » Dec 2nd, '15, 18:45

Exactly, as this thread is about hibernation, and not about moving your /home folder.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest