Selecting cores independently in a dual quad core machine
Posted October 12, 2009 at 21:49 by jalarron
A copy of a very helpful reply.
Quote:
Hi Javier,
Are you running 6.3.26? There was a problem that it would launch the second run on the same cores with that version of Fluent. If you use 6.3.35 or 12.0.16 it should not happen.
To set the cores manually:
- Start the first job to run (it will grab four cores for itself).
- start second Fluent session and load case and data
- set the process affinity with the TUI command:
(set-affinity "0 4 1 5 2 6 3 7")
This example will set a 4-partition parallel run to run on 4 cores; the data is arranged in pairs such that partition 0 is sent to core 4, partition 1 is sent to core 5 etc.
To see which cores are currently loaded, use top, and when top is running press "1". This expands the CPU section at the top to show individual cores. From the load status you will be able to see which cores are not occupied.
Hopes this helps.
cheers.
PS. if you are using older series Xeon (e.g. 52xx, 53xx, 54xx, 73xx) the bad news is that there will be very little speedup going from 4 to 8 cores due to memory bandwidth limitations. for newer series (55xx) this will not be the case. if licenses are a problem, it is best to run 2 threads per CPU (only use 2 of the 4 cores). It should be as fast as using all 4, and it uses half the licenses.
Are you running 6.3.26? There was a problem that it would launch the second run on the same cores with that version of Fluent. If you use 6.3.35 or 12.0.16 it should not happen.
To set the cores manually:
- Start the first job to run (it will grab four cores for itself).
- start second Fluent session and load case and data
- set the process affinity with the TUI command:
(set-affinity "0 4 1 5 2 6 3 7")
This example will set a 4-partition parallel run to run on 4 cores; the data is arranged in pairs such that partition 0 is sent to core 4, partition 1 is sent to core 5 etc.
To see which cores are currently loaded, use top, and when top is running press "1". This expands the CPU section at the top to show individual cores. From the load status you will be able to see which cores are not occupied.
Hopes this helps.
cheers.
PS. if you are using older series Xeon (e.g. 52xx, 53xx, 54xx, 73xx) the bad news is that there will be very little speedup going from 4 to 8 cores due to memory bandwidth limitations. for newer series (55xx) this will not be the case. if licenses are a problem, it is best to run 2 threads per CPU (only use 2 of the 4 cores). It should be as fast as using all 4, and it uses half the licenses.
Total Comments 0