Ubuntu Forums

Ubuntu Forums (http://ubuntuforums.org/index.php)
-   Desktop Environments (http://ubuntuforums.org/forumdisplay.php?f=329)
-   -   [ubuntu] [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid! (http://ubuntuforums.org/showthread.php?t=987244)

prshah November 19th, 2008 12:47 PM

[SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
2 Attachment(s)
Summary:

Edit your /etc/init.d/rc file (with "sudo")
Code:

gksudo gedit /etc/init.d/rc
, and change the value
Code:

CONCURRENCY=none
to value
Code:

CONCURRENCY=shell
, then reboot. Notice the faster bootup time.

This did work in earlier versions of Ubuntu, but broke with HAL in Gutsy. There was a workaround, (which is also applicable to Hardy) but it's not required in Intrepid!

My bootup time reduced from over 70s to under 35s ! I'm attaching bootchart files to illustrate.

CAVEATS:
a. At your own risk, please
b. Your mileage may vary

tgpraveen November 19th, 2008 01:43 PM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
could u also shed some light on what the change actuaaly means? is it completely safe? dont wanan wreck my sys.

others pls share ur results.

king_lear November 19th, 2008 02:41 PM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
Only a moderate increase in speed in my system
No damages though

prshah November 19th, 2008 03:20 PM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
Quote:

Originally Posted by tgpraveen (Post 6211494)
could u also shed some light on what the change actuaaly means? is it completely safe? dont wanan wreck my sys.

concurrency=shell allows certain startup scripts to be executed simultaneously, rather than serially (ie, waiting for scripts to be completed in order).

It didn't work in Gutsy or Hardy since there was a specific issue of a conflict in the load order of dbus and HAL; however there was an easy fix which simply ensured that HAL loaded _after_ dbus.

In Intrepid though, that fix doesn't seem to be required. Just making this change in the /etc/init.d/rc file is enough.

IMPORTANT NOTE: This will only speed up the _boot process_ (When the loading bar (usplash) is active). It should not have any effect on the actual performance of the system. If you feel your entire system is faster then it's probably psychological.

If you run into problems, changing "concurrency" back to "none" should clear it up (you may need the "recovery shell" option in GRUB).

Also, apparently those with multiple processors will benefit most. (Eg, Core 2 Duo, etc)

rbolio November 19th, 2008 05:54 PM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
well, boot chart claims timing was the same (35 sec) [with auto loggin enabled...]
but i did see boot up bar go faster... so

Thanks!

prshah November 19th, 2008 11:36 PM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
Quote:

Originally Posted by rbolio (Post 6213164)
well, boot chart claims timing was the same (35 sec) [with auto loggin enabled...]
but i did see boot up bar go faster... so

The bootchart time (near the upper left corner) also shows me only about 1 sec improvement; but the chart's timeline itself shows over 35s improvement. So I'm guessing that the time mentioned is something else; possibly the time _before_ the chart starts.

btw, the boot process ends with the splash screen; so auto-login enabled or not makes no difference in the boot up time (will not show up in bootchart).

der_joachim November 20th, 2008 06:52 AM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
Please note that this tweak will only work if you have a multicore processor, or multiple processors. Somewhere in the EEE forums I read that for single core single processor machines this tweak will not work or even slow down the system.

Good that the HAL bug is finally squashed. :)

tgpraveen November 20th, 2008 08:19 AM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
ok so not of much use for me on pentium 4. :-(

snowpine November 20th, 2008 10:57 AM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
It did not appear to speed up the boot on my atom-based eee pc.

Shwefty November 20th, 2008 11:22 AM

Re: [SOLVED] Speed up your boot time upto 2X ! concurrency=shell works in Intrepid!
 
Thanks for the tip! I have a Centrino Duo in my laptop, but with changing the script my boot time increases from 77 seconds with "none" to 83 seconds with "shell". :( That's measuring from hitting <Enter> in Grub to seeing my Wireless Network needs access to keyring prompt. Auto-login.

So, double check your boot-times before and after you do this to see if it helps you! (which just because it didn't for me doesn't me it won't help you)


All times are GMT -4. The time now is 07:59 AM.

vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project.