LinuxQuestions.org
Register a domain and help support LQ
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 02-11-2005, 10:16 PM   #1
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Rep: Reputation: 15
How long does it take to compile the kernel on a slow machine?


Ok, i know the performance gain is gonna be almost imperceptible... but im up to do it... ONLY if it is not gonna take forever... so thats why im doing this thread...

I have a K6-300 MHz with 64 MB of RAM...


Can you give me an approached time??? 30 min??? 1 hour???



PS: I think I'll compile the 2.4.29 version.
 
Old 02-11-2005, 10:31 PM   #2
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
I think it takes about 20 minutes on my Athlon XP 2000+. I can remember waiting a couple hours when I did it on my 400 Mhz box, but that was kernel series 2.2.x, so compile times may have changed.

Once you get the config process out of the way, you can run everything in one command and let it run while you'll be away.

The process differes slightly between 2.6.x and 2.4.x, so search for the correct commands. Then join all the commands with "&&" like this:
Code:
make menuconfig && make bzImage && make modules && make modules_install
When that's all done, then copy the kernel image and System.map to /boot, reconfigure LILO and reboot. Search for exact instructions on how to re-compile the kernel.

It's really not hard, it'll just consume a lot of your computer's time. Run it overnight if you have to.
 
Old 02-11-2005, 10:31 PM   #3
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Rep: Reputation: 30
I did a kernel build and it took like 5 minutes when I did make the rest is really short so I would say 1 hour unless you have the kernel packed with stuff.
 
Old 02-11-2005, 11:08 PM   #4
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
kernel compile time

Way back when chips were made of wood..........

Once upon a time a long time ago, I had a 386-33 running Slackware 3.something I think, anyway
IIRC it took about two days to compile the kernel.

But then, I don't remember too well according to my wife.
 
Old 02-12-2005, 02:04 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I have an array of such machines...
Of course it depends on how many modules, etc, but it'll probably take 1-1.5 hrs for the kernel and maybe 3-4 hours for the modules, and even make deps will probably take 30 minutes.
With more RAM these times would improve considerably. But, my main machine is a PII 333MHz and it seems that performance doesn't improve much above 300-400MB RAM. What I mean is that the processor becomes the bottle-neck above that.
 
Old 02-12-2005, 04:27 PM   #6
MylesCLin
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Rep: Reputation: 30
Kernel compile times aren't really that bad.

I can't really help you with an estimate, but here's a guide;

http://savetheneighbor.6.forumer.com/viewtopic.php?t=20
 
Old 02-12-2005, 04:34 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
if he started compiling when he posted,....he'd be done by now....
and also know how long it takes...

egag
 
Old 02-12-2005, 09:26 PM   #8
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
You can actually compile the kernel on a faster machine and tranfer the bzImage, .config and System-map over.

Oh wait, if you use this method, don't use module. I know you can transfer the modules as well. But I haven't done it before.
 
Old 02-12-2005, 10:04 PM   #9
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
compile on faster box

I have often thought of doing this, but never got around to it.

So, this evening I wiped my laptop with Slack 10 (2.4.26) and did a fresh install of the plain 2.4.26 kernel.
Sometime this evening I'll compile a custom kernel for it on another box and transfer the stuff that carboncopy
mentioned.

After it's done, I will post the results.
 
Old 02-12-2005, 11:50 PM   #10
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 294

Rep: Reputation: 32
carboncopy is right

I Just did as carboncopy said, except I didn't move the System.map file over, and it works.

on a Dual 2.8GHz HTXeon 400MHz fsb box it took 5 min and 35 sec to make bzImage
This while processing two Folding@Home work units. The F@H work units didn't show
any sign of processing slower because of this compiling activity.

Thanks carboncopy for getting me in gear, I have wanted to do this for some time.

The dual Xeon box is the most powerful box I have, and I always need a special kernel for other slower units.
And really don't like to compile a kernel on the laptop due to the heat and the fan noise that goes
with the process. The laptop has a 2.4GHz P4 and it runs hot as *%@^ just by being turned on. :0
 
Old 02-15-2005, 12:11 AM   #11
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Re: carboncopy is right

Quote:
Originally posted by guzzi
I Just did as carboncopy said, except I didn't move the System.map file over, and it works.
Great! Well, the last time I did it. I use a Athlon-XP 1800 to compile a tiny kernel for AMD K6-2, in fact I even did a kernel for Pentium 100MHz.

I never copy the .config and System-map though.
 
  


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
Compile kernel on one machine, move it to another dhave Slackware 11 10-21-2004 05:54 AM
Computer Slow After Kernel Compile brokenflea Slackware 9 10-03-2004 11:26 PM
SLOW after kernel re-compile ming0 Slackware 2 03-28-2004 01:45 PM
Is this machine too slow? Kernel cannot handle page request error. Pcghost Linux - General 4 07-10-2003 01:46 PM
Kernel Won't Compile For i586 machine natto34 Linux - General 1 06-30-2002 12:49 AM


All times are GMT -5. The time now is 08:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration