Hey guys, I am working on optimizing a XEON server with 4x 10 core (20 thread) CPUs.
I’m not certain the plotter is utilizing all of the cores correctly so I would like to utilize the CPU Affinity in SWAR.
However, I’m not exactly sure how to designate the cores / threads. In resource manager the threads are listed like this…
CPU 0 (NODE 0)
CPU 1 (NODE 0)
CPU2 (NODE 0)
All the way through CPU 19 (NODE 0)
Then it starts over:
CPU 0 (NODE 1)
CPU 1 (NODE 1)
etc.
It does that all the way through node 2 & node 3.
anyway, and idea what I might need to do in SWAR for CPU affinity in this case?
Also, if anyone has any experience in optimizing a XEON server, I am all ears if you have any tips.
Thank you in advance!
ShamesFPV
1 Like
Asked the same question and am waiting for a response. Nowhere does it show an example and looking through the actual code to handle affinity I didn’t see any support for multiple CPUs, just lots of threads on a single CPU, but I asked @swar just to be sure… Let’s see what he says.
@swar in regards to the cpu_affinity attribute, what’s the proper way to use multiple CPUs? I know for a single 4 core 8 thread CPU you might have it look like (assuming you want all threads except two to be used):
cpu_affinity: [ 0, 1, 2, 3, 4, 5 ]
But for multiple CPUs, assuming 2 x 4 core 8 thread CPUs, would it just be:
cpu_affinity: [ 0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14 ]
(assuming we want to leave threads for each CPU available for other stuff).
Correct? Or would the proper us…
2 Likes