You are not logged in.

#1 2011-06-06 07:59:15

cuihao
Member
Registered: 2011-03-19
Posts: 27

Will booting faster if all modules built in kernel?

I think booting should be faster if compiling all needed modules built-in (not in initrd file but kernel binary) , for there is no need to modprobe when booting (then I can remove udev hook and modprobe from initrd).

Is it really effective?


Forgive my poor English. I am a senior student from China.

Offline

#2 2011-06-06 08:02:36

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Will booting faster if all modules built in kernel?

Yes it will be faster, but how much really depends on the circumstances. For comparison, i use the regular initramfs in combination with systemd on an ssd, and my system boots from grub to X in less than 5 seconds. So it really depends on what your goals are, which soft- and hardware you use, and how much time you are willing to invest.


ᶘ ᵒᴥᵒᶅ

Offline

#3 2011-06-06 08:10:56

cuihao
Member
Registered: 2011-03-19
Posts: 27

Re: Will booting faster if all modules built in kernel?

Using systemd and e4rat, my system boots from grub to X in about 13 secs now (normal HDD).
I am looking for ways to make it faster.


Forgive my poor English. I am a senior student from China.

Offline

#4 2011-06-06 11:33:40

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: Will booting faster if all modules built in kernel?

You won't gain more than ~3 seconds without an hardware change or bypassing the fsck check. I hope to be proved wrong though.


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#5 2011-06-06 13:03:38

cuihao
Member
Registered: 2011-03-19
Posts: 27

Re: Will booting faster if all modules built in kernel?

It seems ChoK is right.
I have trid for an afternoon, but boot time was never less.
Without disabling fsck and other services, 12 secs should be my mechine's best.


Forgive my poor English. I am a senior student from China.

Offline

#6 2011-06-06 16:11:55

Viper_Scull
Member
From: London, UK
Registered: 2011-01-15
Posts: 153

Re: Will booting faster if all modules built in kernel?

litemotiv wrote:

Yes it will be faster, but how much really depends on the circumstances. For comparison, i use the regular initramfs in combination with systemd on an ssd, and my system boots from grub to X in less than 5 seconds. So it really depends on what your goals are, which soft- and hardware you use, and how much time you are willing to invest.

When you folks say to X, do you mean to the Display Manager?

My conf is SSD + systemd + slim + xfce 4.8 + everything built into the kernel. auto-login.

from grub to the desktop in about 9 seconds.

Last edited by Viper_Scull (2011-06-06 16:16:05)


Athlon II X4 620 + Gigabyte 785GPM-UD2H + 4GB DDR3 + SSD OCZ Vertex2 60GB

Archlinux x86_64 + Openbox

Offline

#7 2011-06-07 03:52:34

cuihao
Member
Registered: 2011-03-19
Posts: 27

Re: Will booting faster if all modules built in kernel?

My bootchartd:
http://photos5.media.pix.ie/54/E1/54E1E … 5D3329.png

HDD, without disabling fsck
using e4rat, systemd
modified init script and base hook, re-compiled minimal busybox
all needed modules built-in (except nvidia driver)

Last edited by cuihao (2011-06-07 04:48:05)


Forgive my poor English. I am a senior student from China.

Offline

#8 2011-06-08 12:53:48

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: Will booting faster if all modules built in kernel?

By the way fastboot was a 2.6.29 only kernel parameter because it was unstable, see here http://lkml.indiana.edu/hypermail/linux … 02402.html . Everything has been merged by default in 2.6.30, more relevant stuff here http://www.h-online.com/open/news/item/ … 41921.html .


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

Board footer

Powered by FluxBB