Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sreadahead and the 5 second boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2542
Location: Near Toronto

PostPosted: Tue Sep 22, 2009 12:10 am    Post subject: sreadahead and the 5 second boot Reply with quote

Hi all. I read that ubuntu KK will have super fast boot times
especially on machines with ssd.

one key component is something called sreadahead which preloads
start up libraries etc during the boot process

I patched my kernel (tuxonice 2.6.30r5) without problem and
emerged sreadahead

but when the machine starts I get an error, something like

can't write to iter_ctrl; permission denied

sreadahead starts but I can notice no improvement in boot
speed

anyone have any advice on this? TIA
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Tue Sep 22, 2009 12:26 am    Post subject: Reply with quote

https://bugs.gentoo.org/257207 is good reading.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2542
Location: Near Toronto

PostPosted: Tue Sep 22, 2009 1:21 am    Post subject: Reply with quote

Quote:
https://bugs.gentoo.org/257207 is good reading.


kind of sad actually

somebody better tell ubuntu sreadahead is a dead project
and the reported 5 second boots of KK are hallucinations :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Hupf
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 110
Location: Germany

PostPosted: Tue Sep 22, 2009 5:51 pm    Post subject: Reply with quote

There is always sys-apps/preload, app-benchmarks/bootchart and squashfs. I've got a HDD-based laptop here booting in 8 seconds (poweron->xdm) even without squashfs.
The main speedups were gained by keeping the system size as small as possible (restrictive USE flags and choice of software), reordering init services (pushing as much behind xdm as possible) and putting files in one block at the beginning of the hard disk (doesn't apply to SSD's).

For SSD's, the trick should remain the same: just fire up xdm and load everything else while the user is typing her password, by then most of the system should be cached in RAM.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5881

PostPosted: Tue Sep 22, 2009 6:05 pm    Post subject: Reply with quote

One thing I've done is to use two runlevels - the first one loads the bare minimum to make the system usable, then in local.start it switches to the second one which runs the rest of the services.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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