Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Faster boot using make
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
opqdonut
n00b
n00b


Joined: 09 Nov 2004
Posts: 7
Location: Helsinki, Finland

PostPosted: Mon May 02, 2005 5:48 am    Post subject: Faster boot using make Reply with 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
View user's profile Send private message
opqdonut
n00b
n00b


Joined: 09 Nov 2004
Posts: 7
Location: Helsinki, Finland

PostPosted: Mon May 02, 2005 6:01 am    Post subject: Faster boot using make Reply with quote

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
View user's profile Send private message
zxiiro
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2004
Posts: 98
Location: Ottawa

PostPosted: Mon May 02, 2005 6:16 am    Post subject: Re: Faster boot using make Reply with quote

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
View user's profile Send private message
opqdonut
n00b
n00b


Joined: 09 Nov 2004
Posts: 7
Location: Helsinki, Finland

PostPosted: Mon May 02, 2005 6:20 am    Post subject: Reply with quote

Quote:
admins usually move your posts.


Hmm, thanks, good to know :)
first time i really use the forums
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Mon May 02, 2005 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
b3cks
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1481
Location: Bremen (GER)

PostPosted: Mon May 02, 2005 7:06 am    Post subject: Reply with quote

I tried this on an older Notebook just for fun and it wasn't a good idea. :wink:
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
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Mon May 02, 2005 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
opqdonut
n00b
n00b


Joined: 09 Nov 2004
Posts: 7
Location: Helsinki, Finland

PostPosted: Mon May 02, 2005 12:51 pm    Post subject: Reply with quote

Quote:
I tried this on an older Notebook just for fun and it wasn't a good idea.


How so?
Back to top
View user's profile Send private message
opqdonut
n00b
n00b


Joined: 09 Nov 2004
Posts: 7
Location: Helsinki, Finland

PostPosted: Mon May 02, 2005 12:55 pm    Post subject: Reply with quote

Does anyoone know how RC_PARALLEL_STARTUP is implemented?
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Mon May 02, 2005 12:55 pm    Post subject: Reply with quote

yes, it is.
_________________
We are Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
Back to top
View user's profile Send private message
castorilo
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 157

PostPosted: Mon May 02, 2005 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon May 02, 2005 6:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum