GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.