Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] More than one hour to compile kernel

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
MH
Posts: 204
Joined: 2008-09-20 15:16
Location: The Matrix

[SOLVED] More than one hour to compile kernel

#1 Post by MH »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: More than one hour to compile kernel

#2 Post by stevepusser »

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.
MX Linux packager and developer

MH
Posts: 204
Joined: 2008-09-20 15:16
Location: The Matrix

Re: More than one hour to compile kernel

#3 Post by MH »

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: 204
Joined: 2008-09-20 15:16
Location: The Matrix

Re: More than one hour to compile kernel

#4 Post by MH »

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

Post Reply