LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2004, 09:03 PM   #1
chasingmytail
LQ Newbie
 
Registered: Jun 2004
Distribution: Slack 10-current
Posts: 23

Rep: Reputation: 15
Slow Kernel Decompress


This was already posted to the laptop forum and bumped once, but I've gotten no response. I'm hoping someone here may be able to help.


===================================

What I'm running:
- Kernel 2.6.7 (working good - about 1.8MB [ a little fat ] )
- Slack 10.0

on an IBM A21m ThinkPad. 750Mz - 192MB - RAM - 40GB (4200RPM) HDD

Everything is working extremely well, finished tweaking the kernel to just how I want it. And it just struck me this morning (I have no idea why it took me this long to notice) that my kernel takes about 20 seconds to decompress. I have a desktop running essencially the same setup, but the same size and version kernel decompresses in about 1.5-2 seconds, right about how long it should take.

My first guess is that my hard drive is causing the delay. I retweaked all the power settings in BIOS, still no change. When I select my kernel in lilo, my hard drive flashes for a milisecond (accessing the kernel image, i'm guessing) and then starts decompressing, sssslllooowwwlllyyyy. So it's not the hard drive, well, I'm pretty sure.

I considered setting up GRUB, but LILO is working just fine in my multi-boot setup on my laptop and desktop. And LILO isn't causing this hang-up on my desktop.


If it wasn't for this hang-up on the decompression of the kernel, my notebook would be booting in about 40 seconds.


Any ideas?
 
Old 07-13-2004, 09:15 PM   #2
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Well, on my X31 I attributed the delay to the BIOS check at the beginning of boot, not decompressing the kernel. It does seem exceptionally long compared to the desktops but I figured it was just the nature of the hardware or the BIOS. I would like to see a solution
to speed this up as well, but it is not that big a deal to me.

Last edited by Mephisto; 07-13-2004 at 09:20 PM.
 
Old 07-13-2004, 09:19 PM   #3
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Oh yeah, my X31 is a 1.4 GHZ Pentium-M with a 40gb 5400RPM drive and 1.5GB of RAM.

(Woo hoo!! 200 posts... O And it only took me 2 years.)
 
Old 07-14-2004, 05:30 AM   #4
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Re: Slow Kernel Decompress

Quote:
Originally posted by chasingmytail
When I select my kernel in lilo, my hard drive flashes for a milisecond (accessing the kernel image, i'm guessing) and then starts decompressing, sssslllooowwwlllyyyy. So it's not the hard drive, well, I'm pretty sure.
Try using the COMPACT option in LILO. Just write compact on a line of its own toward the start of /etc/lilo.conf. That may work.
 
Old 07-14-2004, 10:06 AM   #5
chasingmytail
LQ Newbie
 
Registered: Jun 2004
Distribution: Slack 10-current
Posts: 23

Original Poster
Rep: Reputation: 15
Thank's, works great! The kernel now loads almost immediately! I hope you don't mind if I copy/paste this solution into the laptop forum (credit given of course!)


I have never seen this option COMPACT before, so naturally I Google'd it and here's a compiled explanation as to why it speeds things up, for those who are curious as to why this works exceptionally well (for me anyways):

The compact option makes LILO read the hard drive faster. It merges read requests for adjacent sectors into a single read request, which reduces the load time and also makes the map smaller. This option can cause older systems to hang and may cause problems for those using LBA32 drive's.



Well, I'm happy now!
 
Old 07-14-2004, 10:24 AM   #6
SolarBear
Member
 
Registered: Oct 2003
Location: Québec, Canada
Distribution: Gentoo 2005.0(desktop), Debian 3.0 r2 (server)
Posts: 105

Rep: Reputation: 15
Is this option available only for laptops ? And would it save a lot of time for "regular" LILO users (i.e. those not having problems with boot time) ?
 
Old 07-14-2004, 11:29 AM   #7
chasingmytail
LQ Newbie
 
Registered: Jun 2004
Distribution: Slack 10-current
Posts: 23

Original Poster
Rep: Reputation: 15
It's a normal LILO option that should work on just about any machine. It's actually recommended for use with boot diskettes to speed the boot-up process. Strangely, from my searchings, this isn't a well documented option ...
 
Old 07-14-2004, 11:40 AM   #8
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
I only needed it for my laptop, lilo on my pc was fast anyways.
 
Old 07-15-2004, 08:17 AM   #9
SolarBear
Member
 
Registered: Oct 2003
Location: Québec, Canada
Distribution: Gentoo 2005.0(desktop), Debian 3.0 r2 (server)
Posts: 105

Rep: Reputation: 15
Yeah, but you know, speed is like candy. There's no such thing as too much candy.
 
Old 07-15-2004, 09:46 AM   #10
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Once I realised that compact speeded up the kernel loading I tried it on the pc and I lost the little line of dots that spread across the screen. So I switched back for the dot-eye-candy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High speed memory, linux kernel decompress error randyding Linux - Hardware 2 09-04-2005 08:08 PM
Decompress gtgoku Linux - Software 2 04-06-2005 09:19 PM
I can't decompress qt bcf2 Linux - Newbie 3 10-29-2004 09:19 PM
Slow Kernel Decompress chasingmytail Linux - Laptop and Netbook 4 07-16-2004 09:22 AM
Kernel Decompress Taking a long time v2-ncl Linux - Laptop and Netbook 0 11-10-2003 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration