You are not logged in.
Hi,
I recently made the switch to arch linux.
Because it is a very lightweight system I also expected it to shutdown very fast. But it doesn't...
It takes about 15 seconds to shutdown. And my old ubuntu installation about 4 seconds.
Even a fresh install is slower in shutting down than ubuntu... how?
Thanks!
Last edited by tgoossens (2011-02-13 09:43:42)
Share and enjoy!
Offline
Arch is as light as you make it: do you have any daemons installed that you didn't have on Ubuntu? Which daemons do you see taking longer to shut down?
ᶘ ᵒᴥᵒᶅ
Offline
My old computer running pretty standard Arch Linux (no tweaking for faster boot or shutdown) takes 8 seconds to shutdown from X (I'm running dwm) to poweroff.
Offline
Feel free to compare arch's shutdown procedure with ubuntu's and see where they differ.
For example, arch keeps it simple when teminating processes, it just sends a SIGTERM and waits 5 seconds for processes to terminate, then it sends a SIGKILL to everyone who may have refused to die and waits another second, so this always takes 6 seconds.
Ubuntu sends SIGTERM and then continually checks if all processes are properly dead every second for at most ten seconds. It then sends a SIGKILL to the remaining processes only if it thinks there are any. This means that if all processes are already properly terminated after, say 2 seconds, ubuntu immediately carries on with the rest of the shutdown procedure.
The arch method is KISS and in line with technical simplicity as defined in the Arch Way. The ubuntu method is inherently more complex and thus less ideal from arch's point of view.
If you really care about shutdown time you could port ubuntu's method to your own shutdown script.
Offline
Thanks for this very interesting info!
I'm glad that I understand now why it is 'slower'.
@hbekel
One question: what are the (dis)advantages of both methods?
Thanks a lot!
Share and enjoy!
Offline
That's for you to find out, by tinkering with your system... After all, that's why you picked Arch.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
You are right :-)
Thanks for the answers!
Share and enjoy!
Offline