Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GZIP and boot performance...
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
Apopatos
Guru
Guru


Joined: 17 Oct 2004
Posts: 506
Location: Hellas

PostPosted: Sun Nov 22, 2009 2:38 pm    Post subject: GZIP and boot performance... Reply with quote

Hi guys,
I'm trying to reduce my boot time to minimum and I'm experimenting with a lot of things.
Frist of all I removed a lot of unnecessary things from kernel, reduced the use of modules to minimum, used wicd for networking setup, enabled parallel process and used an fbsplash theme with jpg images instead of png. I'm thinking to use runit or something similar instead of init as well but as far as I have seen they don't support fbsplash... anyway
The things go nice so far. With my 5 years old Athlon64 3000+ I have boot time 22 seconds from lilo to KDM but the weird thing is this one:
I read somewhere that if you have a fast CPU and slow I/O as it happens in x86, is possible bzip2 to decompress faster than gzip. I found this very odd but I decided to give it a try, it's free afterall ;)
So, I tried all three kernel compressions. Gzip, Bzip2 and LZMA.
Results:

GZIP 20 secs for kernel initialization --> 30 secs from lilo to kdm :?
Bzip2 13 secs for kernel initialization --> 23 secs from lilo to kdm
LZMA 12 secs for kernel initialization --> 22 secs from lilo to kdm

So I stick with lzma for now. But isn't odd for gzip to take soooo long? Over 50% slower than Bzip2 :?:
_________________
rm -rf /
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Sun Nov 22, 2009 3:08 pm    Post subject: Reply with quote

That's weird. LZMA takes at least twice as long on my Core 2 machine.
Back to top
View user's profile Send private message
Apopatos
Guru
Guru


Joined: 17 Oct 2004
Posts: 506
Location: Hellas

PostPosted: Sun Nov 22, 2009 5:21 pm    Post subject: Reply with quote

wswartzendruber wrote:
That's weird. LZMA takes at least twice as long on my Core 2 machine.

That's the normal.
How long takes your kernel initialization?
_________________
rm -rf /
Back to top
View user's profile Send private message
Apopatos
Guru
Guru


Joined: 17 Oct 2004
Posts: 506
Location: Hellas

PostPosted: Mon Nov 23, 2009 11:25 am    Post subject: Reply with quote

I wonder btw wh there is not an option for uncompressed kernel. It would help so much the boot time.
_________________
rm -rf /
Back to top
View user's profile Send private message
Hupf
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 105
Location: Germany

PostPosted: Mon Nov 23, 2009 4:52 pm    Post subject: Reply with quote

Apopatos wrote:
I wonder btw wh there is not an option for uncompressed kernel. It would help so much the boot time.

Most laptops today have a decent processor, but a very slow hard disk. For me, bootchart shows that the CPU is idling most of the time and that the HDD is always under load. The logical step here is compression: move some load away from the current bottleneck which is the harddisk.
YMMV, esp. on desktops with fast HDD or even RAID and on systems with slow processors (e.g. Celeron-III 333MHz).
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