Quote:
Originally Posted by syg00
Pretty obvious I would have thought. The only CPU that the task has affinity to isn't in the subset.
Change its affinity mapping first.
|
But when I tried to migrate a process to a cpuset which is the subset of its current cpu list, it still failed:
[root@pexserv02 tmp]# cat /dev/cpuset/cpus
0-7
[root@pexserv02 tmp]# grep "\<25\>" /dev/cpuset/tasks
25
[root@pexserv02 tmp]# taskset -pc 25
pid 25's current affinity list: 7
[root@pexserv02 tmp]# cat /dev/cpuset/tmp/cpus
1-2,5-7
[root@pexserv02 tmp]# echo 25 > /dev/cpuset/tmp/tasks
-bash: echo: write error: Invalid argument
[root@pexserv02 tmp]#