View previous topic :: View next topic |
Author |
Message |
n1mnul n00b
Joined: 18 Jul 2006 Posts: 8 Location: Ukraine, Kiev
|
Posted: Sun Dec 03, 2006 1:12 am Post subject: The fastest boot time |
|
|
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 |
|
|
sp7xfq n00b
Joined: 28 Dec 2005 Posts: 60 Location: Poland, Kielce
|
Posted: Sun Dec 03, 2006 8:17 am Post subject: |
|
|
Hi,
Maybe you should use suspend to disk and resume instead of full booting procedure ?? _________________ Andrzej Sobczyk
Feel free to correct my English |
|
Back to top |
|
|
kornhs4 Tux's lil' helper
Joined: 27 Jun 2004 Posts: 86 Location: Austria
|
Posted: Sun Dec 03, 2006 9:49 am Post subject: initng |
|
|
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 |
|
|
n1mnul n00b
Joined: 18 Jul 2006 Posts: 8 Location: Ukraine, Kiev
|
Posted: Sun Dec 03, 2006 6:24 pm Post subject: |
|
|
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Sun Dec 03, 2006 9:27 pm Post subject: |
|
|
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 |
|
|
bensberg n00b
Joined: 09 Mar 2005 Posts: 36
|
Posted: Wed Dec 06, 2006 3:55 pm Post subject: |
|
|
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 |
|
|
n1mnul n00b
Joined: 18 Jul 2006 Posts: 8 Location: Ukraine, Kiev
|
Posted: Thu Dec 07, 2006 8:02 pm Post subject: |
|
|
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 |
|
|
x22 Apprentice
Joined: 24 Apr 2006 Posts: 208
|
Posted: Thu Dec 07, 2006 8:27 pm Post subject: |
|
|
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 |
|
|
|