Hibernate (suspend-to-disk) is very slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
As per bug #185703, on my SONY VAIO CR323 laptop hibernate is very slow, even with the 2.6.27 kernel.
While I appreciate Linux is not Windows and does not aim to be, comparisons should give an indication of what the hardware is capable of. Hibernate in Windows takes approximately 7 seconds on this machine.
Under Kubuntu Linux 8.04, from selecting "Suspend to Disk" in Knetworkmanager to the machine actually powering down takes 1:14 seconds. Interestingly enough, the HDD activity light is only on for 11 seconds of this time. Would be very interesting to know what it is doing for the rest of the time :)
uname -a: Linux eddie-laptop 2.6.27-6-generic #1 SMP Tue Oct 7 04:15:04 UTC 2008 i686 GNU/Linux
cat /proc/version_
lsb_release -rd:
Description: Ubuntu 8.04.1
Release: 8.04
apt-cache policy linux-image-
linux-image-
Installed: 2.6.27-6.9
Candidate: 2.6.27-6.9
Version table:
*** 2.6.27-6.9 0
100 /var/lib/
dmesg.log & lspci-vvnn.log attached in bug #185703
As an update to this, I've played with s2disk and s2both from the package uswsusp. Before doing this, I cleared my syslog.
These commands give quite a bit more information, which could be useful. From starting s2disk it first does an initial "Suspending consoles(s)", then it frees memory, writes pages to disk, etc. This is all relatively quick.
Finally it gets to appear to the final line "Suspending consoles(s)" (the second time round) and this stage is taking 45 seconds. Yet my /var/log/syslog has no record of this 45 second delay. I've attached the excerpt, if anyone is interested: