SUSE/cpuset

pthread_setaffinity_np failed after cset shield

Opened this issue · 1 comments

I have a question as a beginner. I first use cset shield --cpu to isolate a set of cores. Then I run another application which calls pthread_setaffinity_np to bind itself to that set of cores, too. However, pthread_setaffinity_np reports fail.

Does cset shield cause pthread_setaffinity_np to fail?

If so, how can I make pthread_setaffinity_np to succeed after cset shield?

cset shield --exe is not a good solution for in my case.

Thanks a lot

Did you ever figure this out? Having a similar issue.