On 2016.02.12 at 08:58 +0100, Bastian Bittorf wrote:
> * Stefan Ring <stefan...@gmail.com> [10.02.2016 11:41]:
> > Unfortunately, process priority is absolutely worthless on machines
> > with hyperthreading. The other day I witnessed someone using all 64
> > virtual cores of gcc110 (the POWER7 machine), and it was godawfully
> > slow to work with.
> > 
> > My rule of thumb is to leave at least one physical core free in order
> > to not disturb other users. So if the machine is 8x8 core (8 physical,
> > 8x HT -- I don't know the real topologies of these POWER machines), I
> > strive to use at most 7 cores.
> 
> this is interesting. till now i always invoked a build with:
> 
> #!/bin/sh
> jobs=$( grep -sc ^'processor' /proc/cpuinfo )
> jobs=$(( $( cpu_count ) + 1 ))
> 
> make --jobs $jobs
> 
> so should i change that to -2 ?

You should change that to "/ 2" at least.

From https://gcc.gnu.org/wiki/CompileFarm
«For automatic jobs on N-core please launch no more than N/2 runnable
processes (total)«

-- 
Markus

_______________________________________________
Gcc-cfarm-users mailing list
Gcc-cfarm-users@gna.org
https://mail.gna.org/listinfo/gcc-cfarm-users

Reply via email to