Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How long does it take to install kernel (linux 3.2.5) on 12.04 using make install -j 4 command?

My terminal is displaying this for around 40 minutes now.

root@user-desktop:/usr/src/linux-3.2.5# make install -j 4
sh /usr/src/linux-3.2.5/arch/x86/boot/install.sh 3.2.5 arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.5 /boot/vmlinuz-3.2.5
share|improve this question

closed as primarily opinion-based by fossfreedom Jun 29 '13 at 20:27

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
A lot :) Linux kernel has a very big number of lines of code and it will take a lot to build unless you have a really powerful computer. My advice, go out for a few hours. –  Aleksandar Sep 1 '12 at 10:23
    
dhruva god! _/_ it took me 2 hrs! .. and you worried about 40 mins! and btw you need 4 cores/processors for -j 4 to work! –  shiladitya Sep 2 '12 at 11:03
    
While I tend not to use a higher -j number than the number of physical cores in the machine, there are actually various reasons why using a higher number may still provide better performance: Not all threads will always use 100% of the processor resources available to them (this is the main reason, and the basis for some recommendations that the -j number always be higher than the number of physical cores), the CPU may have hyperthreading so there are more logical processors than physical cores, and so forth. And -j 4 will at least run, even if you have fewer than 4 cores. –  Eliah Kagan Sep 2 '12 at 12:11
1  
This question is not answerable in a sane way in my opinion. This heavily depends on kernel configuration and system hardware. I've seen it ranging between 10 minutes and 6 hours. –  gertvdijk Jan 17 '13 at 9:07

4 Answers 4

It depends on the hardware especially the CPU. Here is a poll result which might help you to see. But, normally it is between 1-2 hours.

share|improve this answer

On a 64 CPU machine with lots of disks in RAID, ~5-8 minutes, with most of that being consumed in the final debian packaging step.

share|improve this answer

With a SSD and a Sandy Bridge clocked at 4 GHz on demand, it took ~ 8 mins with HT on and make -j14.

share|improve this answer

My first successful kernel compile was of the 3.2 kernel on a K8 Mobile Sempron 1.8GHz with 512MB of single-channel DDR and an ATA-100 5200RPM hard disk included just about every module in mainline, because I didn't know what I was doing. It took 11 hours!

My most recent kernel, also 3.2, but now on a Pentium Dual Core T2370 with 2GB dual-channel DDR2 and a SATA-3 SSD and all the unneeded modules turned off took 1 hour 48 minutes. It can very a lot.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.