SWAR CPU Affinity for CPU nodes (XEON)

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.

2 Likes