The affinity of user processes could be set by cpuset(7)
.
Could the affinity of thread created by kernel be set through the cpuset(7)
?
I found that the affinity of some kthreads could be set by cpuset
indeed([rcu_sched],[rcu_bh]),some kthreads couldn't([nvme-delete-wq],[kthreadd],i got the error: " echo: write error: Invalid argument").
If you have a better solution, please let me know.