Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The fastest boot time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
n1mnul
n00b
n00b


Joined: 18 Jul 2006
Posts: 8
Location: Ukraine, Kiev

PostPosted: Sun Dec 03, 2006 1:12 am    Post subject: The fastest boot time Reply with quote

Ok. Sorry for my english :) Some words here are not in right place, but i think you'll understand ....

I have a competition with one guy, bla bla bla ... so what's the point :

I need to boot Gentoo with KDE and a few apps in 20 sec. maximum.
No services, just plain KDE with few apps.

Is it real ?

I have installed Gentoo already, but i need to optimize boot time.
Hardware is : Athlon64 3000+ oc to 2.2 Ghz, 1.5Gig RAM, nForce3, Seagate 80G Sata

I know it sounds kinda stupid, but it is important for me :)

I'll appreciate any help.
Back to top
View user's profile Send private message
sp7xfq
n00b
n00b


Joined: 28 Dec 2005
Posts: 60
Location: Poland, Kielce

PostPosted: Sun Dec 03, 2006 8:17 am    Post subject: Reply with quote

Hi,
Maybe you should use suspend to disk and resume instead of full booting procedure ?? :twisted:
_________________
Andrzej Sobczyk


Feel free to correct my English
Back to top
View user's profile Send private message
kornhs4
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2004
Posts: 86
Location: Austria

PostPosted: Sun Dec 03, 2006 9:49 am    Post subject: initng Reply with quote

Hi n1mnul,

When I used initng my boot time was about 36sec (To have a running kdm; with old init it takes 45sec). But I also started iptables, cups and so on. I have a centrino notebook with a pentium-m cpu @ 1.6Ghz (2MB L2 Cache), 1GB RAM and my hdd has the following performance stats:
Code:

hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   1824 MB in  2.00 seconds = 910.91 MB/sec
 Timing buffered disk reads:   82 MB in  3.07 seconds =  26.70 MB/sec


A fast harddisc is the most important bottleneck in this case. You need a disc with low seek times. Maybe you could try to bring a basic root partition to a usbstick. Since they use a FLASH memory, they do not know what head moving means. Maybe you could move /usr/ to another partition on hdd, because I guess you don't have a usbstick with several gigs.
_________________
_________________
Life would be easier
if i had the source code
Back to top
View user's profile Send private message
n1mnul
n00b
n00b


Joined: 18 Jul 2006
Posts: 8
Location: Ukraine, Kiev

PostPosted: Sun Dec 03, 2006 6:24 pm    Post subject: Reply with quote

suspeding is not a variant, because it's not actually booting, i need a 'real' boot.

I'm using initng already, i have a 28 sec from grub to loaded kde
i have about 6 sec 'stuck' after kernel loading before it actually starts to boot ... and about 6-7 sec starting X... if i reduce time of this two things - i have 20 sec. But i don't know how to ...
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Dec 03, 2006 9:27 pm    Post subject: Reply with quote

Did you try einit?

benchmark

Also, there is a thread (maybe in Documentation forum) which talks about caching some files that you usually startup on boot and writing contiguously to the hard drive. So, all those applications will start faster on a reboot.
Edit: here is the link
Back to top
View user's profile Send private message
bensberg
n00b
n00b


Joined: 09 Mar 2005
Posts: 36

PostPosted: Wed Dec 06, 2006 3:55 pm    Post subject: Reply with quote

n1mnul wrote:
i have about 6 sec 'stuck' after kernel loading before it actually starts to boot

What do you mean with "stuck"? Are you maybe not seeing the output of the boot scripts? As those 6 seconds is about the time that the scripts take for me: between INIT starting and X starting.
Back to top
View user's profile Send private message
n1mnul
n00b
n00b


Joined: 18 Jul 2006
Posts: 8
Location: Ukraine, Kiev

PostPosted: Thu Dec 07, 2006 8:02 pm    Post subject: Reply with quote

with "stuck" i meant that before my init ( now eINIT, tnx to ppurka, it is really fast :) ) starts booting.

so, i have grub selecting kernel to boot, changes video resolution ( video=radeonfb:1280x1024-32@75 ), and after ~6 sec i see "eINIT: Initializing Linux".

i have my root partition in reiserfs ... probably it mounts so long, is there any way to speed up the mount ?
Back to top
View user's profile Send private message
x22
Apprentice
Apprentice


Joined: 24 Apr 2006
Posts: 208

PostPosted: Thu Dec 07, 2006 8:27 pm    Post subject: Reply with quote

ext3 mounts faster than reiserfs. ext2 may be little bit faster (unless when it needs to recover from unclean unmount).

On my system, lilo loads kernel, then it takes some time (kernel initialization), then videomode is changed (sisfb), then there is more initialization and then init starts. All those initializations output messages to console and they take about 10 seconds from lilo to init (there is no large delay, but all those initializations added together take considerable amount of time). It is much faster with all drivers disabled (I had made some experiments with minimalistic kernels and initramfs's).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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