LinuxQuestions.org
Help answer threads with 0 replies.
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 12-13-2008, 07:15 AM   #1
joshua'83
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Loading Linux very slow


hey,

i have a problem with my laptop loading slackware 12.1. i use the standard kernel that ships with slackware 12.1, which is 2.6.21.5-smp. since i don't know to what this problem might be connected i just describe my problem naivly. after entering my boot choise in lilo there comes the line:

Loading Linux............................
Bios Data Check successful

and so on. my problem is with the dotted line. i know that the length of the line is connected with the size of the kernel but the size is not my problem (i used the standard kernel on my desktop for a long time and it loaded linux in no time with half the ram). my problem si that the dots come very slowly. it takes my laptop about 15-20 secondes to complete the line. compiling a smaller kernel reduces the overall time but the dots still come slowly.

any ideas. would and ramdisk be helpful?
thx joshua
 
Old 12-13-2008, 07:26 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
welcome to LQ

I too have had this problem on an old laptop and there are 2 possible solutions:

1) Install and use grub from /extra instead of lilo, basically installpkg it and run 'grubconfig' as root

2) Use lilo 'compact' option, so somewhere in '/etc/lilo.conf' add the word 'compact' like:
http://www.control-escape.com/linux/lilo-cfg.html
Then run '/sbin/lilo' as root to update the config.

Last edited by H_TeXMeX_H; 12-13-2008 at 07:28 AM.
 
Old 12-13-2008, 08:03 AM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,069

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by joshua'83 View Post
hey,

Loading Linux............................
Bios Data Check successful
and so on. my problem is with the dotted line. i know that the length of the line is connected with the size of the kernel but the size is not my problem ... (snip)

thx joshua
Uncomment this line in "/etc/lilo.conf":
#compact # faster, but won't work on all systems.

Seel man lilo.conf for details.
 
Old 12-13-2008, 08:13 AM   #4
joshua'83
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
worked

hey H_TeXMeX_H,

i tried the second option since i don't really like grub. it worked. thank you very much. do you know what the option does. the link you posted just states "Makes LILO read the hard drive faster." how? or in other words, what happens during the statment "Loading Linux.........."

joshua
 
Old 12-13-2008, 09:02 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Here's the exact reason why, it's written in lilo.conf too, usually:
http://www.linuxquestions.org/questi...5/#post2921883
 
Old 12-13-2008, 10:08 AM   #6
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,069

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by joshua'83 View Post
hey H_TeXMeX_H,

i tried the second option since i don't really like grub. it worked. thank you very much. do you know what the option does. the link you posted just states "Makes LILO read the hard drive faster." how? or in other words, what happens during the statment "Loading Linux.........."

joshua
I have suggested you to read "man lilo.conf".
If you really want to know what happens with "compact", that manual is clearer than any other docs because it is from the author of LILO.

Last edited by guanx; 12-13-2008 at 10:46 AM.
 
Old 12-13-2008, 04:01 PM   #7
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
Hi joshua'83,

Are you sure you're not running the huge kernel, and without an initrd? In that case, those dots comes in a slow pace. When using the generic kernel, it loads much faster for me, (although the complete boot still takes it's time, of course).

Jan-C.

Last edited by jannekrille; 12-13-2008 at 04:03 PM. Reason: Wrong op-name...
 
Old 12-14-2008, 08:20 AM   #8
joshua'83
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Here's the exact reason why, it's written in lilo.conf too, usually: http://www.linuxquestions.org/questi...5/#post2921883
thanks H_TeXMeX_H. i'll have a look into it.

Quote:
I have suggested you to read "man lilo.conf".
If you really want to know what happens with "compact", that manual is clearer than any other docs because it is from the author of LILO.
thank you too guanx. well "man lilo.conf" was obvious, wasn't it? just a bit too obvious for me to do it . i'll look into it as well.

Quote:
Are you sure you're not running the huge kernel, and without an initrd? In that case, those dots comes in a slow pace. When using the generic kernel, it loads much faster for me, (although the complete boot still takes it's time, of course).
actually `uname -r` returns 2.6.21.5-smp but i think it is a huge kernel. maybe i should setup an initrd. i don't really know how to do but i read the kernel documentation for initrd and i think there's a description.

thank you all, joshua
 
Old 12-14-2008, 08:37 AM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
i use the standard kernel that ships with slackware 12.1, which is 2.6.21.5-smp.
That's not the standard with 12.1, 2.6.24.5 is. The one you quote comes with Slackware 12.0. If you haven't specifically setup an initrd then you will be running the huge kernel. Have a look at /boot/README.initrd and man mkinitrd for help on building one.
 
Old 12-14-2008, 11:24 AM   #10
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
bgeddy said:
Quote:
Have a look at /boot/README.initrd and man mkinitrd for help on building one.
And don't forget to change /etc/lilo.conf and run lilo after making (or re-making) the initrd. Here is a clever script that can help you make a proper initrd:
http://www.slackware.com/~alien/tool...d_generator.sh
 
Old 12-15-2008, 07:48 AM   #11
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,069

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by jannekrille View Post
Hi joshua'83,

Are you sure you're not running the huge kernel, and without an initrd? In that case, those dots comes in a slow pace. When using the generic kernel, it loads much faster for me, (although the complete boot still takes it's time, of course).

Jan-C.
Neither the kernel image nor the initrd has anything to do with the slow pace of ".......". It happens if you are so unlucky that you have specific BIOS / HDD combinations. Suppose you have a 4MB kernel image spanning across 8192 sectors, your HDD spins at 5400 rpm, and if you read only one sector at a time, your next read must wait for the HDD to turn around because of no read-ahead, then in the worst case, your HDD must turn 8192 rounds before your kernel can be loaded, that will cost 8192/5400=1.5 minutes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
browser loading very very slow robinmckenzie Linux - Software 3 01-25-2007 10:58 AM
With my Linux PC, layered, buried FF pages stall or slow greatly in loading SP7 General 1 12-08-2006 02:36 PM
slow linux loading jamaso Linux - Laptop and Netbook 4 05-18-2004 07:09 AM
slow linux loading jamaso Linux - General 5 05-15-2004 06:16 PM

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

All times are GMT -5. The time now is 05:48 PM.

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