cpuset icon indicating copy to clipboard operation
cpuset copied to clipboard

pthread_setaffinity_np failed after cset shield

Open ryuxin opened this issue 6 years ago • 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

ryuxin avatar Dec 27 '19 11:12 ryuxin

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

alexhadd avatar Jul 10 '20 19:07 alexhadd