On a Linux kernel 3.11.0-13-generic
i can't set affinity for kernel threads as in the following example:
>ps -p 828
PID TTY TIME CMD
828 ? 00:00:00 nfsiod
>sudo taskset -pc 7 828
pid 828's current affinity list: 0-11
taskset: failed to set pid 828's affinity: Invalid argument
>sudo taskset -pc 7 17551
pid 17551's current affinity list: 7
pid 17551's new affinity list: 7
>
17551 is a user process, and nfsiod is a kernel thread. How can I change the affinity for the nfsiod deamon running as a kernel thread ?