Lorian
Posts: 112
Joined: Sun Mar 11, 2012 10:09 am

Kernel compile time....?

Wed Jun 06, 2012 8:55 pm

Anyone give me a clue how long a kernel compile takes roughly (raspbian?). Running on a Pi, overclocked to 850/500 on a type 10 card?
Been going for about an hour so far, do I have time for 2 pints?

I'm thinking easily... :mrgreen:

Lorian
Posts: 112
Joined: Sun Mar 11, 2012 10:09 am

Re: Kernel compile time....?

Thu Jun 07, 2012 6:18 am

Well in the end 5h 17m

I don't think it would slow down much on a slower SD card as the process is very CPU bound.

The board didn't get unduly warm during the build.

You need about 2.5Gb of disk (SD) space to complete the build.

naicheben
Posts: 344
Joined: Sat Jan 28, 2012 12:28 pm
Contact: Website

Re: Kernel compile time....?

Thu Jun 07, 2012 7:54 am

Class 6 SD-Card : more than 2 pints !

I started at 10pm and let it run over night. Next time I will start the compilation with:
"time make" to see how long it took. But at least it is obvious that you get drunk before the comilation is finished :mrgreen:

ian.macarthur123
Posts: 35
Joined: Thu Nov 17, 2011 10:58 pm
Location: Edinburgh

Re: Kernel compile time....?

Thu Jun 07, 2012 9:45 am

As an aside, I doubt the class of the SD card is making that much of a difference, since it looks very much as if the the way the SD interface is being clocked in the R-Pi is set to a fixed (and relatively low) clock speed.
So installing a faster card probably is not affecting access times all that much.

Though if anyone had actual metrics that prove I'm wrong, I'd be delighted!

User avatar
fjen
Posts: 14
Joined: Mon May 07, 2012 7:15 pm
Location: Germany

Re: Kernel compile time....?

Fri Jun 08, 2012 2:18 pm

ian.macarthur123 wrote:As an aside, I doubt the class of the SD card is making that much of a difference, since it looks very much as if the the way the SD interface is being clocked in the R-Pi is set to a fixed (and relatively low) clock speed.
The SD card clockspeed can be set with init_emmc_clock in config.txt, see http://elinux.org/RPi_config.txt#Boot_options

Lorian
Posts: 112
Joined: Sun Mar 11, 2012 10:09 am

Re: Kernel compile time....?

Mon Jun 11, 2012 6:29 pm

I installed and configured ccache and my pi-based kernel build this morning only took an hour.

bviously the first run after installin ccache takes a little longer than normal while it does its caching.

User avatar
bob_binz
Posts: 441
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: Kernel compile time....?

Mon Jun 11, 2012 7:08 pm

Can't you cross-compile on your PC?

Lorian
Posts: 112
Joined: Sun Mar 11, 2012 10:09 am

Re: Kernel compile time....?

Mon Jun 11, 2012 8:04 pm

There is no fun in that :D

User avatar
bob_binz
Posts: 441
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: Kernel compile time....?

Mon Jun 11, 2012 8:18 pm

Lorian wrote:There is no fun in that :D
Heh, true enough - but if you find yourself building the kernel often (as I did recently trying to keep my wifi module in sync with the firmware updates!) it becomes a bind waiting over night all the time! I must say I'm not familiar with ccache though.

Lorian
Posts: 112
Joined: Sun Mar 11, 2012 10:09 am

Re: Kernel compile time....?

Mon Jun 11, 2012 8:22 pm

Its worth installing even on your PC build env. apt-get install ccache

The full kernel build is using < 100Mb for the cache. Takes seconds to set up.

User avatar
spennig
Posts: 84
Joined: Mon Aug 29, 2011 11:34 am
Location: New Forest
Contact: Website

Re: Kernel compile time....?

Mon Jun 11, 2012 8:31 pm

There may not be fun in cross-compiling, but it takes under 3 minutes on a reasonably modern multi-cored machine. Well worth it if you keep upto date with git.

raspip
Posts: 3
Joined: Wed Feb 26, 2014 9:51 am
Location: London

Re: Kernel compile time....?

Tue Jan 06, 2015 1:46 pm

time (make && make modules)
real 640m0.838s
user 595m59.250s
sys 27m34.970s

hippy
Posts: 6244
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Kernel compile time....?

Sat Oct 10, 2015 11:12 pm

Building for whatever comes with Jessie on a Pi B+ at 900MHz, just the kernel make ( default with the addition of DisplayPort ), modules and the rest yet to come ...

Real 987m31.008s
User 901m34.060s
Sys 37m2.700s

So basically 17 hours.

User avatar
PeterO
Posts: 5140
Joined: Sun Jul 22, 2012 4:14 pm

Re: Kernel compile time....?

Thu Nov 17, 2016 11:23 am

Just as an update to this...

Kernel build on a PI3 with external USB hard disk takes 61 minutes, but needed some extra cooling from a desk fan to keep the "high temp" warning icon at bay.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “Raspbian”