You are not logged in.

#1 2011-02-12 08:53:51

tgoossens
Member
From: Belgium
Registered: 2011-02-06
Posts: 96
Website

[SOLVED]How to make arch shutdown as fast as ubuntu

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

#2 2011-02-12 09:17:21

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

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

#3 2011-02-12 09:43:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

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

#4 2011-02-12 09:53:57

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

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

#5 2011-02-12 22:38:50

tgoossens
Member
From: Belgium
Registered: 2011-02-06
Posts: 96
Website

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

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

#6 2011-02-12 23:09:46

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

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

#7 2011-02-13 09:42:00

tgoossens
Member
From: Belgium
Registered: 2011-02-06
Posts: 96
Website

Re: [SOLVED]How to make arch shutdown as fast as ubuntu

You are right :-)

Thanks for the answers!


Share and enjoy!

Offline

Board footer

Powered by FluxBB