Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-11-2005, 09:16 PM
|
#1
|
|
Member
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67
Rep:
|
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.
|
|
|
|
02-11-2005, 09:31 PM
|
#2
|
|
Member
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125
Rep:
|
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.
|
|
|
|
02-11-2005, 09:31 PM
|
#3
|
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478
Rep:
|
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.
|
|
|
|
02-11-2005, 10:08 PM
|
#4
|
|
Member
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 291
Rep:
|
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.
|
|
|
|
02-12-2005, 01:04 AM
|
#5
|
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,590
|
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.
|
|
|
|
02-12-2005, 03:27 PM
|
#6
|
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164
Rep:
|
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
|
|
|
|
02-12-2005, 03:34 PM
|
#7
|
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
if he started compiling when he posted,....he'd be done by now....
and also know how long it takes...
egag
|
|
|
|
02-12-2005, 08:26 PM
|
#8
|
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Rep:
|
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.
|
|
|
|
02-12-2005, 09:04 PM
|
#9
|
|
Member
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 291
Rep:
|
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.
|
|
|
|
02-12-2005, 10:50 PM
|
#10
|
|
Member
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 291
Rep:
|
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
|
|
|
|
02-14-2005, 11:11 PM
|
#11
|
|
Senior Member
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Rep:
|
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. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|