You are not logged in.
I'm compiling some packages and svn myself and I'm wondering, why 'make' only use one of the 4 cores on the cpu ? is there som way to make it use all four ? I'd assume compiling would be a lot faster.
Offline
Make's "-j" option controls how many jobs make can execute at the same time. Makepkg defaults to -j 2 (set under MAKEFLAGS in /etc/makepkg.conf ).
Offline
This can break some software from compiling, and it will fail without warning.
Offline
Yeah, some argue that '-j 3' is fine, but many have come across problems with anything but the default '-j 2 'which happens to be very safe.
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
I personally use -j3 for my SMP. I have not had a problem yet, though, it is widely perceived that -j2 is safest and I'm not arguing.
Offline
This can break some software from compiling, and it will fail without warning.
On multi-core systems this already happens with the default -j2. There one might have to explicitly set -j1 for some builds, but I have yet to see a program that would build with -j2 but not -j3 or -j4.
Offline
-j5 on a Core 2 Duo is fine, while -j10 on a Quad works Well, at least according to some ricers.
-j1, for a case example, is required for compiling anything VST-related.
When you come across a build that fails with regards to job servers, take a look at the default makefile. Few will tell you that > make=-jn will not work. This was discussed to a little extent here.
I need real, proper pen and paper for this.
Offline
See race condition, for why 1 thread works, and >1 maybe won't.
Offline