Written by cyberix the 24 Aug 09 at 12:05.
Category: Quality.
Related project:
Nothing/Others.
Status: New
Rationale
While Ubuntu shutdown time isn't typically very long, the time may still matter when one needs to turn her laptop off to catch a bus, or reboot a system with strict availability requirements.
shutdown time is not a big deal, since it's within a ranger of few seconds. what a mean is if it takes too long, it's a problem but spend dev resources to push shutdown time from 7 to 4 seconds doesn't worth. my opinion. :)
-1 solution 1.
+1 solution 2.
I think shutdown speed is important because it defines how fast the user can "get rid" of Ubuntu. If it is not too hard, then the user might use Ubuntu another time as well. :-)
I agree with sleep/hibernate, but they don't work on my system anyway, so I haven't considered them.
I think the shutdown speed is already good. Unless there's something wrong with the system, it takes a matter of seconds.
I mean, really, if ~10 seconds is going to make you later for your bus, perhaps you need to organise your time better. Any number of intervening events could delay you far more than that.
So, while I don't think it's necessarily a bad idea, I put down a don't care for solution #1, +1 for solution #2.
It's a good idea to define a speed target for shutdown - however I believe the current shutdown speed would meet that target.
Suspend/hibernation speed is a lot more important that shutdown speed, because those are much more likely to be used in a hurry. (That is, if the user actually happens to be in the priviliged few that are even able to use such a strange and esoteric feature as a *gasp* suspend for a laptop! Sorry for the rant, but all this suspend/hibernate stuff really, really needs to be fixed...)
I remember reading that Linus and his boys made some good progress with that in a recent version of the kernel, but I can't find where I read it, or what version of the kernel.
As some of you might know, Apple just published their Snow Leopard operating system. The release notes state: "shutting down is up to 80 percent faster, saving precious moments when you’re trying to head home or to the airport."
Hibernation/Suspend doesn't work. So when I'm running to catch a bus, I shutdown my laptop. Sometimes it fails to shutdown. Once it used all the battery life and was extremely hot after running inside my bag. Thus I usually wait for it to shutdown before putting it into my bag. Sometimes I feel I cannot wait and simply do a hard power off.
Now, I realize this is because of multiple bugs. Fixing them would remove my problem. How ever, I do not expect all of them to get fixed any day soon. While waiting for someone to fix the core issues, a reliable and fast shutdown would serve me rather well.
Startup is already quite fast. I'm sure it can be faster, but hibernation is far behind at the moment.
I would recommend this prioritisation of tasks:
1) Fix hibernation problems to a reasonable extent (I'm certain some progress has been made on this kernel-side; unsure about the version)
2) Make hibernation fast
3) Make boot faster, multi-threaded boot
4) Make shutdown faster
I think at this point in time, it would be greatly beneficial to add a tux-on-ice patched kernel to the repos, in case it improves the situation for some people.
If shutdown takes more then 2-5 seconds on a laptop it feels sluggish and some *ignorant* users will just hard poweroff all the time. Whist with ext4 hard poweroffs will usually not destroy data, they can still damage hardware and feeling sluggish damages reputation so I think that a small bit of effort to improve this would help a lot.
I've always found that Ubuntu shuts down unnaturally fast (at least compared to Windows). It could be that the submitter has programs that aren't shutting down as quickly as they should be, and that should definitely be worked on..
The folklore says Windows secures swap space by trashing it with random at shutdown and Ubuntu doesn't. I might be wrong. I'd assume that Ubuntu users with high security requirements would either not use swap at all, or manually configure their system to use a swap file from within an encrypted file-system.