SUSE / cpuset

Originally exported from code.google.com/p/cpuset, then maintained at github.com/lpechacek/cpuset, then migrated the repo here SUSE/cpuset
GNU General Public License v2.0
111 stars 28 forks source link

pthread_setaffinity_np failed after cset shield #29

Open ryuxin opened 4 years ago

ryuxin commented 4 years ago

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

alexhadd commented 4 years ago

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