[Beowulf] [gorelsky at stanford.edu: CCL:dual-core Opteron275performance]
Kozin, I (Igor)
i.kozin at dl.ac.uk
Thu Jul 14 03:25:12 PDT 2005
> But now for 4cores/2CPUs per Opteron node to force the using of
> only 2 cores (from 4), by 1 for each chip, we'll need to have
> cpu affinity support in Linux.
you can use "taskset" for that purpose.
For example, (perhaps not in the most elegant form)
mpiexec -n 1 taskset -c 0 $code : -n 1 taskset -c 2 $code
But I doubt you want to let the idle cores to do something else
in the mean time. However small you will generally see an increase
in performance if you use all the cores.
I. Kozin (i.kozin at dl.ac.uk)
CCLRC Daresbury Laboratory
tel: 01925 603308
Distributed Computing Forum
More information about the Beowulf