LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 07-01-2007, 08:16 PM   #1
Method9455
Member
 
Registered: Jun 2006
Posts: 33

Rep: Reputation: 15
Speeding up compile time?


It seems like I keep recompiling kernels because of new features (kvm, timer changes) that come come out, or bugs I run into (nvidia + paravirt_ops, libata vs old ata system), so I'm on my 5th kernel compile in about 4 weeks. Needless to say we all know they're slow. I haven't timed mine but I'd say its about 45 minutes?

What are my options for speeding that up? I have a Intel Core 2 Duo E6600, so 2 x 2.4ghz. On my most recent one I've stripped out a lot of the drivers I'm sure I will never need which should help a lot. But my main question is there a way for it to use both processors in parallel - or is it doing that already? My other machine is a Pentium 4 2.4ghz and it didn't seem to take any less time for that one to compile which makes me think it doesn't use both processors.

I currently use the kpkg way of doing it since I'm using Debian Etch, but I used to use the standard make bzImage when I used Slackware so either way can work for me if its an option, I just want to speed it up because I like tweaking the kernel but I don't get much free time anymore, much less enough to wait an hour while it compiles and I'm not accomplishing anything.
 
Old 07-01-2007, 08:59 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Count the number of processors your kernel sees (I suspect two), and add a -jN option to your make commands. Where N is the number of processors plus one. Almost halves the compile time of kernels on my AMD64 Turion X2.

Regards,

Alunduil

Sidenote: On a Sun E6500 with 19 Blackbirds and -j20 I can compile a clean kernel in under 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
kernel compile time and boot time lordofring Programming 1 11-13-2005 03:04 AM
Problem at compile time!! juanjavier_xxx Linux - Newbie 7 09-04-2004 05:22 PM
First time Kernel compile - Problem. the_rydster Slackware 11 02-27-2004 05:48 AM
Trying to compile for first time Please Help Viper Linux - Software 18 08-16-2003 12:29 AM
Compile Time Warnings Touchstone Linux - General 1 10-16-2002 03:03 AM


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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration