0

We are considering a new workstation (will be running Fedora 25/26), and would like to know what a good CPU would be. To start off, I need to know how many cores I need. To help decide that, I want to see how one of the applications I will be using a lot preforms.

Does 'make' take advantage of multi-core/multi-thread? What about multi-CPU? Would making the Kernel, for example, be significantly shorter with multiple cores, or would the difference be not noticeable?

I'm not doing scientific calculations here, so a few milisecond difference won't bother me.

3
  • 3
    Check the make man page specifically the -j option. – Mokubai May 9 '17 at 21:33
  • "Does 'make' take advantage of multi-core/multi-thread?" -- Yes, make is capable of running simultaneous jobs. – sawdust May 9 '17 at 21:41
  • By that, do you mean that I can run multiple instances of 'make' at the same time, or that one 'make' instance may take advantage of multiple cores? The man page isn't that precise. – LoganJamison May 9 '17 at 21:45
2

Yes: https://www.gnu.org/software/make/manual/html_node/Parallel.html

GNU make knows how to execute several recipes at once. Normally, make will execute only one recipe at a time, waiting for it to finish before executing the next. However, the ‘-j’ or ‘--jobs’ option tells make to execute many recipes simultaneously. You can inhibit parallelism in a particular makefile with the .NOTPARALLEL pseudo-target (see Special Built-in Target Names).

The question you need to ask is not whether MAKE can take advantage of multiple threads, but whether you NEED it to take advantage of that. Are the application(s) you're making the sort that can be compiled in multiple discrete recipes by MAKE?

Though, to be honest, it is exceptionally difficult to find a non-multicore processor today, so why even the question? If you're going budget, your computer is likely going to have at least 4 logical processing units.

The rest of the question is not something we can answer here: What sort of loads will your applications place on a MAKE server?

1
  • 1
    I was planning on possibly adding a Ryzen CPU, but I was also considering a lower cost processor with a higher clock speed and less cores/threads, and possibly a MoBo with a mini-ITX form factor (for a small case, maybe, as Ryzen only goes to Micro-ATX if I remember correctly). – LoganJamison May 11 '17 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.