linux - How one can set affinity for kernel threads? -
on linux kernel 3.11.0-13-generic
can't set affinity kernel threads in 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 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 user process, , nfsiod kernel thread. how can change affinity nfsiod deamon running kernel thread ?
many kernel threads set flag pf_no_setaffinity
:
#define pf_no_setaffinity 0x04000000 /* userland not allowed meddle cpus_allowed */
to change affinity, have change kernel.
Comments
Post a Comment