View previous topic :: View next topic |
Author |
Message |
opqdonut n00b
Joined: 09 Nov 2004 Posts: 7 Location: Helsinki, Finland
|
Posted: Mon May 02, 2005 5:48 am Post subject: Faster boot using make |
|
|
This seems a very cool way of shortening boot times:
http://www-106.ibm.com/developerworks/linux/library/l-boot.html?ca=dgr-lnxw04BootFaster
It talks about using make to do the init scripts in parallel where possible. The only problem seems to be deciding dependencies between scripts (as the normal way of linux distributions is to use the "S##foo" notation which only tells us the start order). But hey! Gentoo lists dependencies in the init scripts themselves! Probelm solved!
What do you think?
I think i'll try this on my box first and then make a feature request or something on bugzilla. |
|
Back to top |
|
|
opqdonut n00b
Joined: 09 Nov 2004 Posts: 7 Location: Helsinki, Finland
|
Posted: Mon May 02, 2005 6:01 am Post subject: Faster boot using make |
|
|
Sry for crossposting (posted this originally in "other things gentoo" and realised only later it was the wrong place)
Quote: |
This seems a very cool way of shortening boot times:
http://www-106.ibm.com/developerworks/linux/library/l-boot.html?ca=dgr-lnxw04BootFaster
It talks about using make to do the init scripts in parallel where possible. The only problem seems to be deciding dependencies between scripts (as the normal way of linux distributions is to use the "S##foo" notation which only tells us the start order). But hey! Gentoo lists dependencies in the init scripts themselves! Probelm solved!
What do you think?
I think i'll try this on my box first and then make a feature request or something on bugzilla.
|
|
|
Back to top |
|
|
zxiiro Tux's lil' helper
Joined: 27 Apr 2004 Posts: 98 Location: Ottawa
|
Posted: Mon May 02, 2005 6:16 am Post subject: Re: Faster boot using make |
|
|
opqdonut wrote: | Sry for crossposting (posted this originally in "other things gentoo" and realised only later it was the wrong place) |
admins usually move your posts. |
|
Back to top |
|
|
opqdonut n00b
Joined: 09 Nov 2004 Posts: 7 Location: Helsinki, Finland
|
Posted: Mon May 02, 2005 6:20 am Post subject: |
|
|
Quote: | admins usually move your posts. |
Hmm, thanks, good to know :)
first time i really use the forums |
|
Back to top |
|
|
Lucky B Apprentice
Joined: 01 Apr 2005 Posts: 235 Location: Florida
|
Posted: Mon May 02, 2005 6:44 am Post subject: |
|
|
and RC_PARALLEL_STARTUP="yes" does this already in /etc/conf.d/rc _________________ We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated. |
|
Back to top |
|
|
b3cks Veteran
Joined: 23 Mar 2004 Posts: 1481 Location: Bremen (GER)
|
Posted: Mon May 02, 2005 7:06 am Post subject: |
|
|
I tried this on an older Notebook just for fun and it wasn't a good idea.
Maybe this works flawlessly on fast PCs and Notebooks. _________________ I am /root and if you see me laughing you better have a backup. |
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Mon May 02, 2005 7:14 am Post subject: |
|
|
There are switches in rc to do this. It is noted that it would improve boot performance slightly, though I didn't try it out as of now.
Code: | vi /etc/conf.d/rc +12 |
_________________ -- erol |
|
Back to top |
|
|
opqdonut n00b
Joined: 09 Nov 2004 Posts: 7 Location: Helsinki, Finland
|
Posted: Mon May 02, 2005 12:51 pm Post subject: |
|
|
Quote: | I tried this on an older Notebook just for fun and it wasn't a good idea. |
How so? |
|
Back to top |
|
|
opqdonut n00b
Joined: 09 Nov 2004 Posts: 7 Location: Helsinki, Finland
|
Posted: Mon May 02, 2005 12:55 pm Post subject: |
|
|
Does anyoone know how RC_PARALLEL_STARTUP is implemented? |
|
Back to top |
|
|
Lucky B Apprentice
Joined: 01 Apr 2005 Posts: 235 Location: Florida
|
Posted: Mon May 02, 2005 12:55 pm Post subject: |
|
|
yes, it is. _________________ We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated. |
|
Back to top |
|
|
castorilo Apprentice
Joined: 25 Dec 2002 Posts: 157
|
Posted: Mon May 02, 2005 1:27 pm Post subject: |
|
|
opqdonut wrote: | Does anyoone know how RC_PARALLEL_STARTUP is implemented? |
Yes. RC_PARALLEL_STARTUP is not great.
If two services are running, it waits until one of them finish.
If one service is running, it checks if the next service depends on the one currently running, and waits with a busy wait if so.
So at any given time, either one service + one busy wait is running, or 2 services are running.
That is not very parallel, and wastes a lot of resources (busy waits are expensive).
I made some time ago a patch that makes RC_PARALLEL_STARTUP really parallel, and some other patches that also help boot time. I also made an ebuild for bootchart which is a tool that helps you find bottlenecks during boot time that you can try.
The really parallel patch makes a huge difference on multiprocessor systems. It helps considerbly on single processors systems when applied with the other patches (the xdm one). |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon May 02, 2005 6:13 pm Post subject: |
|
|
https://forums.gentoo.org/viewtopic-t-331982.html
Please ask a moderator to move your post rather than creating a new one. Moved from Other Things Gentoo.
EDIT: Merged. --pjp _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
|