[SOLVED] More than one hour to compile kernel

Kernels & Hardware, configuring network, installing services

[SOLVED] More than one hour to compile kernel

Postby MH » 2017-11-14 01:39

For some reason compile times have tripled on my system. The first time I compiled a kernel (4.9.30) it took ~26 min. The last time it took more than one hour. The kernel source is unchanged (I use it for benchmarking/burn-in), as is kernel configuration. The script I run does a "make clean" before each build.

The only changes to the system (AMD Ryzen 1200 @ 3.5GHz running Buster) have been software updates. I know GCC has been updated, so I'm wondering if that's the cause? Haven't found anything related searching the Internet. I thought maybe my CPU was throttling down, but when I checked the temps they were below 60C. Other benchmarks show no change in performance.
Last edited by MH on 2017-11-15 03:59, edited 1 time in total.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 181
Joined: 2008-09-20 15:16
Location: The Matrix

Re: More than one hour to compile kernel

Postby stevepusser » 2017-11-14 02:11

Are you doing a parallel build or single-threaded? The Debian kernel takes about that long to recompile on my dual core 4-threaded i5, but then it takes another couple hours to convert and build the documentation packages. The Liquorix kernel package takes a little longer for the builds for amd64, since it's building more drivers, and the 32-bit build twice as long since it's building a PAE and non-PAE kernel---no docs with Liquorix.

I suppose you can check to see many of your cores are being utilized for the build.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8904
Joined: 2009-10-06 05:53

Re: More than one hour to compile kernel

Postby MH » 2017-11-15 00:48

stevepusser wrote:Are you doing a parallel build or single-threaded? The Debian kernel takes about that long to recompile on my dual core 4-threaded i5, but then it takes another couple hours to convert and build the documentation packages. The Liquorix kernel package takes a little longer for the builds for amd64, since it's building more drivers, and the 32-bit build twice as long since it's building a PAE and non-PAE kernel---no docs with Liquorix.

I suppose you can check to see many of your cores are being utilized for the build.


I'm using all four threads, though time is not the issue. Time delta is the issue. Same hardware, same kernel, same configuration, drastically different build times. There's been another GCC update, so maybe I'll try another compile and see what happens.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 181
Joined: 2008-09-20 15:16
Location: The Matrix

Re: More than one hour to compile kernel

Postby MH » 2017-11-15 03:58

Looks like the problem was with GCC. I tried compiling a kernel again after a recent update and the compile time dropped to ~25 minutes. Either there was a problem with the previous version, or playing solitaire while I did the earlier compile caused it to take 3x longer. Since solitaire takes less than 3% CPU, that seems unlikely.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 181
Joined: 2008-09-20 15:16
Location: The Matrix


Return to System configuration

Who is online

Users browsing this forum: peter_irich and 14 guests

fashionable