Linux 3.15 Will Suspend & Resume Much Faster
An anonymous reader writes "The Linux 3.15 kernel now in its early life will be able to suspend and resume much faster than previous versions of the Linux kernel. A few days ago we saw ACPI and Power Management updates that enable asynchronous threads for more suspend and resume callbacks. Carrying out more async operations leads to reduced time for the system suspend and then resuming. According to one developer, it was about an 80% time savings within one of the phases. On Friday, work was merged that ensured the kernel is no longer blocked by waiting for ATA devices to resume. Multiple ATA devices can be woken up simultaneously, and any ATA commands for the device(s) will be queued until they have powered up. According to an 01.org blog post on the ATA/SCSI resume optimization patches, when tested on three Intel Linux systems the resume time was between 7x and 12x faster (not including the latest ACPI/PM S&R optimizations)."
There's a reason why RAID controllers tend to wake up drives sequentially. The power load of waking up 20 hard drives at the same time can be tremendous compared to the load when they're all spinning and purring. So you don't do that.
So I hope that power draw is taken into account, and that there will be options to limit the number of devices woken up simultaneously.
On my SandyBridge-era Thinkpad Edge, with:
- one 7200rpm Hitachi drive from ~ 2011 and
- one Intel SSD 525 from ~ 2013,
Debian Testing/Sid with kernel 3.13-1-amd64 wakes up from RAM sleep in 1s or so, thus extremely covenient so I never shutdown/hibernate.. how much more improvement can you get?..
will be happy if it does it right ...
What's the point if suspend resume doesn't work at all?
/forcefsck
/bin/sync
/sys/power/disk /sys/power/state
/sys/power/disk /sys/power/state
/etc/init.d/networking restart
/etc/init.d/nut-client stop
/etc/init.d/nut-server stop
/etc/init.d/nut-server start
/etc/init.d/nut-client start /etc/init.d/ntp restart
Here's my SLEEP script, in which I am testing various kernels:
#!/bin/bash
logger "========== touch forcefsck ==========="
# if resume failed, then I want fsck (SSD disks, so it's just few seconds)
touch
sleep 1
logger "hibernating"
# https://help.ubuntu.com/commun...
# it says there to try hibernating using various different methods
### method: 1 kernel 3,13,0 - fail, (2/6 success rate)
#/usr/sbin/hibernate
### method: 2 kernel 3,13,0 - fail, (3/6 success rate)
#/usr/sbin/s2disk
### method: 3 kernel 3.13.0 - fail, (2/6 success rate)
#echo platform >
#echo disk >
### method: 4 kernel 3.13.0 - (3/6 success rate)
### kernel 3.2.0 - 80% sukcesów 20% fail (over 80/100 success rate - currently in use)
### kernel 3.12-bpo - (0/1) success rate)
echo shutdown >
echo disk >
sleep 5
logger "restart network"
## something screws networking after resume
sleep 2
## also UPS connection is screwed (sometimes I need to disconnect and reconnect the USB cable)
sleep 5
sleep 5
sleep 5
sleep 5
sleep 5
# don't mess with clock
logger "resume complete"
Besides, this is old news. Our new and better site beat slashdot: https://soylentnews.org/articl... . The only working kernel was 2.6.29 with tuxonice
#
#\ @ ? Colonize Mars
#
My main issue with suspend with my laptop is that it never wake up. Now it can be faster at not waking up, wow.
I'd rather have a way to generate log and find the issue relatively easily.
There are quite a few things that slow booting systems. Systemd is _supposed_ to take a lot of the slow, sequential starup out of the actual system daemons: it will be a while before it's really working well for critical, production systems, but that can take minutes off of startup time in a large environment. Note, also, that much of its "startup advantage" is illusory. Daemons are told to start up, and systemd keeps them starting up, but they're not necessarily available for quite some time after startup. This especially applies to databases and bulky Java applications.
The kernel startup is another big factor. Scanning for, assessing, and activating drivers for all the potentially available hardware is a slow and painful process because the upstream specifications are poorly documented, and even violated by many vendors. Many of them are legacy drivers and could in theory be discarded in most production kernels, but doing so can be quite tricky and hard to test for enough strange configuration cases.
The third big software factor is the BIOS. "coreboot", formerly "LinuxBIOS", is blazingly fast compared to most proprietary BIOS's. It has made some inroads but is still not available for any commercial systems I can find. So no matter what is done in the other two factors, the BIOS is still a limiting factor of suspend and restore delays.
Tell me when they can make my laptop last for more than an hour without mains and I'll be happy. I need to upgrade but battery life under Linux is so woeful I can't justify spending the ridiculous prices they are asking these days. To get a similar laptop to the 3 yr old one I have (at least in terms of size, weight, memory and disk) I would have to spend the same amount today as back then. Where is Moore's law again? Even though I can't afford one, I was looking at the Dell XPS 13 but for a couple of hundred more (for similar specs) I could get a macbook air and have *double* the battery life with osx. I would even consider it if I could run Linux on it and get similar battery life to osx... But alas, I read it sucks just as much as on all other machines.
https://github.com/OpenELEC/Op...
Just determined in the last week to be due to async suspend/resume. From the various reports, oretty much all Intel hardware is affected.
... if it suspends and resumes without causing a kernel panic or crashes my video driver.
Linus Torvalds is now said to suspend (but not resume) key linux developers up to 10 times faster.
People don't have any real faith in Linux distros to properly suspend or resume in the first place, much less the speed at which they perform. That needs to be more in like with Windows or OS X before they can even begin to improve its speed.
.... um, it's 2014, the linux kernel is a critical part of the planet's internet infrastructure, is used in TVs, routers and phones all over the world, and you're *seriously* telling me that its internals aren't fully parallelised? i thought the linux kernel was supposed to be a leading example of modern operating system design and engineering.
That's an interesting point. As a Linux user for many years, I never cared about boot or resume time. That's only mattered recently, as handheld devices have become quite useful. My servers and desktop stay powered on for years at a time, so I never cared how many seconds a reboot takes. Obviously a tablet is different. With a tablet, I do care, I want it to start up and shutdown quickly.
I'm in beta and I click classic which is on top it gets me to classic, hit the comments link and brings me back to beta and this is in a fucking loop. Stupid assholes, a website should be about the content itself not the bullshit eye candy which is taking space anyway. FUCKING RETARDS!!!
Sorry but the Suspend feature of Windows - called BSOD - is almost instantaneous.
Slashdot, fix the reply notifications... You won't get away with it...
I have to start by saying I am not against Linux in the least. I commend the people who devote so much time on these projects. But I think the end results still lack any proof that Linux can keep up with the likes of a Windows or OS X proprietary development program. Having worked with Ubuntu, Mint, Fedora and others. I think they have been polished over time but have yet to have the shine that really makes them worthy. Power management has always been hit or miss, and mostly miss in my experience. I hope some improvement has finally come to Linux as many more are now trying Linux on laptops and mobile devices. On a desktop it was no big deal to simply disable power modes. I finally gave up on Linux as its very nature of development is hampered by its open source. A perfect example is how Google has managed to take Linux mainstream with Chrome OS given that it finds way to support it better with predefined hardware and a controlled apps store.
Sometimes structure is a good thing and it brings out a better product.
My Clevo laptop is a Pentium-D and it boots Debian with encrypted root faster than Win7 can resume on my $$$ Core-i5 Lenovo.
So not sure we even need a faster suspend/resume, which is almost instant.
#include <sig.h>
How's the Haswell/Maxwell support coming along? ;-)
How does your system handle powering up the softraid when you turn the system on now?