synchronization-benchmarks icon indicating copy to clipboard operation
synchronization-benchmarks copied to clipboard

Setting affinity before creating threads

Open mjaggi-cavium opened this issue 7 years ago • 1 comments

Should affinity of the thread be set before creating it ? I see that at some point one of the thread is not creating which makes thead0 wait indefinitely. This happens with high core count > 200

mjaggi-cavium avatar May 14 '18 10:05 mjaggi-cavium

The listed commit addresses this issue with what I think you are requesting. It seems to work fine on the systems to which I have access. Also, there is a new command-line option which should make the logical core number assignments behave in a more sensible order in case you're running on a 4 thread-per-core system (pass '-i 4' in this case). The threads still wait so delayed scheduling will still cause hangs; this feature is required to maximize the amount of time all requested cores are running simultaneously. Please test this out and let me know if it fixes your issue.

lucasclucasdo avatar May 14 '18 21:05 lucasclucasdo