LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 08-28-2014, 09:04 PM   #1
zombieno7
Member
 
Registered: Aug 2012
Posts: 49

Rep: Reputation: Disabled
Extremely slow compiles with high end CPU?


I'm in the process of setting up my workstation with Gentoo, and I have no idea why the compile times are as long as they are. I have used Gentoo in the past(over a year ago), and switched to Redhat distros because it seemed more practical at the time. Systemd has driven me back to Gentoo. The only problem is how long the compiles are taking. I'm running a 4930k with 32GB of RAM and an SSD for the OS drive. MAKEOPTS is set at -j12 and -march=native. I've been compiling xorg-server and kdebase-meta since 11:30 AM EST, and am not close to done. I remember the last time I installed Gentoo on my AMD 8350, and it didn't take this long. Has something changed? What am I missing?
 
Old 08-28-2014, 11:14 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Well, the code bases will have increased, so maybe that's part of the issue.

-j also is simply the number of jobs you want to use, not cores. So you could try going higher, especially since, I assume, you are no really using the computer for much else as you compile X and KDE. Try -j24 or -j32
 
Old 08-28-2014, 11:39 PM   #3
zombieno7
Member
 
Registered: Aug 2012
Posts: 49

Original Poster
Rep: Reputation: Disabled
That makes sense. It just seems like a really steep drop in performance. I will try increasing the jobs. It isn't doing anything but compiling.
 
Old 08-29-2014, 06:24 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hard to say what's going on.

You can check cpu and memory usage and see if there's something strange going on besides gcc and python/emerge. Maybe some defunct process is doing something in the background. That should at most keep one core busy, not all of them, usually. If the ram fills up and you start paging to disk, then any system will be brought to its knees. It really doesn't matter how amazing your cpu is.

Sorted that out, I'll say that the amount of packages and code to compile can vary greatly depending on the architecture, USE flags, package versions, etc.

Most definitely, the kde code base has surely increased from 3.x to 4.13 (or .12), and if you changed from x86 to x86_64 then you need to compile two toolchains unless you are in no-multilib.
 
Old 08-29-2014, 10:47 PM   #5
zombieno7
Member
 
Registered: Aug 2012
Posts: 49

Original Poster
Rep: Reputation: Disabled
I'm not really sure exactly what is happening or why, but it seems to run faster with X running. In any case the CPU is maxed on big compiles(like firefox), but the RAM is nowhere close. My guess is that it must just be the larger codebase.
 
Old 08-30-2014, 02:06 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If it runs faster in X, there's a chance that your framebuffer drivers is eating an insane amount of cpu time. Still, that shouldn't affect more than one core unless there's some insane bug involved.
 
  


Reply



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
[SOLVED] CPU 99% idle and extremely slow ledical Linux - Software 18 08-21-2014 03:55 AM
Midnight Commander (MC) slow start on high-end computer treaz Linux - Software 6 02-01-2012 05:10 PM
Extremely slow write on disk with high CPU usage aliojjati Linux - Newbie 1 09-04-2010 01:29 AM
Brutally slow booting speed on FBSD 7.2 high end server okasion *BSD 2 05-11-2010 11:54 AM
Midnight Commander (MC) slow start on high-end computer treaz Linux - Software 1 06-11-2008 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 10:56 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
Open Source Consulting | Domain Registration