You are not logged in.

#1 2006-03-31 12:36:37

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Another bootchart thread...

I'm a new user to Archlinux, I've used Debian, Slackware and Ubuntu in the past. Archlinux beats them all hands down on all aspects except maybe packages. But has most of the stuff that I want (that I can think of now anyway smile).

Here's my bootchart:

bootchart.png

Excuse me for the low bandwidth... smile

Do you guys think there's some way to speed up the bootup even more? I always get the same IP from my m0n0wall router, so I've changed from dhcp to "static" IP in rc.conf, that saves some dhcp seconds. Also, are there multiple kernels available? Any ones that are faster than the "default" ? And is there any other way (a smarter/better way?) to *not* load every module available other than blacklisting them in rc.conf? Because my lsmod output is quite big.

Kind regards // Fackamato

Offline

#2 2006-03-31 12:45:01

FrankTM
Member
From: Zwolle, Netherlands
Registered: 2006-02-19
Posts: 26

Re: Another bootchart thread...

you can make udev not to load all the modules by default, but just make a list of the modules you need

all done in rc.conf


Here is your parachute and here is the manual. Welcome to Linux.

Offline

#3 2006-03-31 12:52:59

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Another bootchart thread...

and setup /etc/mkinitd.conf so initrd has only modules you need, xfs takes the moste CPU time as you can see on your image.

I use ext3 filesystem and I only have FILESYSTEM="jbd ext3" in mkinitrd.conf.

Don't forget to run mkinitrd --auto and add to lilo.conf a label with initd-full in case something goes wront, run lilo.

Offline

#4 2006-03-31 12:53:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Another bootchart thread...

Optimise your initrd - there's a wiki page about it.

There's the archck kernel in the extra repo - I've no idea if it will boot faster, but you could try it and see.

Offline

#5 2006-03-31 13:50:29

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: Another bootchart thread...

Thanks for the tips smile, first post updated with new graph. big_smile

Offline

#6 2006-03-31 16:46:53

Chris|MD
Member
Registered: 2006-03-14
Posts: 36

Re: Another bootchart thread...

bootchart26153so.png

Sorry i've beaten you. Even with udev running and a much slower cpu.
2.6.15, Sizeoptimized, is the fastest Kernel atm. 2.6.16 is 3 seconds slower for me.
Its a custom kernel, i dont use the archkernels. So no initrd too.

If you only have the modules you need you could put them in the List and stop udev but i think that wont be that fast...
I only have the modules i need in the kernel, drivers i need often are in the kernel and not as modules.

Offline

#7 2006-03-31 16:55:55

Sander
Member
Registered: 2006-02-26
Posts: 138

Re: Another bootchart thread...

I read somewhere bootchartd checks for processes like kdm/xdm/gdm to see when the boot sequence ends. However, I'm using the SLiM login manager, and it looks like bootchart can't figure out when the booting ends. Anybody know if I can tell it to look for a specific process, or something?


You like cheese? You like peas? You'll love cheezy peas!

Offline

#8 2006-03-31 20:52:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Another bootchart thread...

Wow, a 17 second boot time *with* X?  That's real impressive.  I'm currently at around 20-25 seconds without X.

Offline

#9 2006-03-31 23:06:17

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: Another bootchart thread...

phrakture wrote:

Wow, a 17 second boot time *with* X?  That's real impressive.  I'm currently at around 20-25 seconds without X.

Did you mean my bootchart? Well, bootchartd stops 'logging' when X is starting up I think, so it doesn't include the X loading time. It's basically 16-17 seconds from grub menu to console, and some more seconds for a total of ~27 seconds to get to the KDE desktop (automagical login etc) from grub.

Offline

#10 2006-04-01 01:47:45

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: Another bootchart thread...

Chris|MD wrote:

Sorry i've beaten you. Even with udev running and a much slower cpu.
2.6.15, Sizeoptimized, is the fastest Kernel atm. 2.6.16 is 3 seconds slower for me.
Its a custom kernel, i dont use the archkernels. So no initrd too.

If you only have the modules you need you could put them in the List and stop udev but i think that wont be that fast...
I only have the modules i need in the kernel, drivers i need often are in the kernel and not as modules.

how big is the size optimized kernel vs. your normal kernel? i've seen that in menuconfig a bunch of times but never actually bothered trying it because i didn't think it would make that much of a difference.

Offline

#11 2006-04-01 10:50:23

Chris|MD
Member
Registered: 2006-03-14
Posts: 36

Re: Another bootchart thread...

I havent compiled it twice so i dont know it.
But i think its broken in 2.6.16 or they just added much code.

The 2.6.12 kernel i have, is around 1.89MB. With GCC4 it has a size of 1.91MB.
Its a customkernel with nearly the same amount of modules i have in the 2.6.15 kernel.

the 2.6.15 kernel (with gcc4 compiled) with sizeoptimization has a size of 1.26MB.
2.6.16 with archck1 and optimization has a size of 1.57MB.

I will compile one later and add the size of an unoptimized 2.6.15 kernel wink

[edit]Here it is. Well im shocked  big_smile
2.6.15-O2 has a size of 1.45MB. So its about 200KB bigger.... but! The Boottime doesnt differ. Well maybe you gain 0.1second. Or even more. But its like a gpu benchmark.  The result often differs.
Heres the bootchart:

bootchart2615o25ou.png

Modprobe takes some load. Adding all Modules to rc.conf would maybe improve the boottime a bit.

Offline

#12 2006-04-01 12:19:28

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Another bootchart thread...

loading modules at MODULES= will give you no speed improve, udev will do it probably faster because it loads all at once.

Offline

#13 2006-04-01 14:05:09

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Another bootchart thread...

tpowa wrote:

loading modules at MODULES= will give you no speed improve, udev will do it probably faster because it loads all at once.

Udev detects modules and load them at once. But if I want to specify them myself can udev load them at once?(without detecting)

Offline

#14 2006-04-01 14:36:47

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,324

Re: Another bootchart thread...

sorry no chance, udev loads through detection of devices.

Offline

#15 2006-04-02 12:51:21

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: Another bootchart thread...

maybe using cramfs for the initrd would help. I read that some distros like debian are doing it now.

Offline

#16 2006-04-02 21:37:34

sabrewolf
Member
Registered: 2004-10-26
Posts: 45

Re: Another bootchart thread...

amd64@3000+
512@ddr400
nforce4-Ultra
maxtor@7200rpm

15segs without X, 25 with kdm  :?

some dm like kdm(nice, themes, light, not much packages) to replace them  :idea:


[code]sorry for my english [/code]

Offline

#17 2006-04-03 00:06:57

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Another bootchart thread...

SLiM

Offline

#18 2006-04-03 00:13:48

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: Another bootchart thread...

it took my system 29 seconds to boot without x. i use xfs, with fbsplash, and qingy. also madwifi. its a custom compiled kernel with a bunch of things compiled as modules being loaded from rc.conf.

Offline

#19 2006-04-03 09:16:18

Sander
Member
Registered: 2006-02-26
Posts: 138

Re: Another bootchart thread...

Gullible Jones wrote:

SLiM

seconded. I love it smile Only problem is that bootchartd doesn't seem to 'detect' it like it detects kdm/gdm, so I can't use it :'( also I haven't found any option in bootchart.conf to tell it what processes to detect; that'd be ideal.

EDIT: I just booted into runlevel 3 with bootchart running and it didn't properly detect the end of the bootprocess either (bootchartd was still running, I checked with ps -ef). So either it doesn't properly detect agetty (so only gdm, kdm would work), or something else is wrong. It's pissing me off though, as I have no error message but "/var/log/bootchart.tgz" not found. sad

EDIT2: I just modified the /sbin/bootchard script to include detection of the process 'slim' (which isn't hard, you just enter the name into a string that lists all detected processes), and now it seems to have worked properly. Yay!


You like cheese? You like peas? You'll love cheezy peas!

Offline

#20 2006-04-03 20:16:47

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Another bootchart thread...

Of course, there's no reason not to just boot to a console... big_smile

Offline

#21 2006-04-07 21:57:03

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Another bootchart thread...

I have 30-31 one seconds to boot into X... This is a normal boot-process that will automatically log me into X.

What the boot process does to make it "this slow" is:

Connect to wireless network (wpa/dhcp request)
Mount encrypted /home via usb-stick

Those two take at least 8 seconds... So I think I have a fairly fast startup. Wouldn't mind having it faster though... Because it's a laptop. :-)


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#22 2006-04-08 06:50:07

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: Another bootchart thread...

Gullible Jones wrote:

SLiM

GJ, could you please compile some howto on SLiM? I tried using it, but I couldn't make it load xfce, nor kde. Maybe a wiki entry? Pretty please smile

Offline

#23 2006-04-20 23:04:17

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: Another bootchart thread...

Neuro wrote:
Gullible Jones wrote:

SLiM

GJ, could you please compile some howto on SLiM? I tried using it, but I couldn't make it load xfce, nor kde. Maybe a wiki entry? Pretty please smile

In your ~/.xinitrc :

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

# exec enlightenment
# exec wmaker
exec startkde
# exec icewm
# exec blackbox
# exec fluxbox
nvidia-settings --load-config-only &

Of course you can remove nvidia-settings and all comments, but it should give you a hint of what you need to edit. smile

Offline

Board footer

Powered by FluxBB