On 8/23/22 12:23, Tejun Heo wrote:
(cc'ing Waiman for visibilty)
On Tue, Aug 23, 2022 at 03:13:30PM +0300, Maxim “MAXPAIN” Makarov wrote:
Hello. I have no idea where I can ask questions about cgroups v2. I have a problem with cpuset partitions.
Could you please, check this question?
https://unix.stackexchange.com/questions/714454/cgroups-v2-cpuset-doesnt-take-an-effect-without-process-restart
When a partition is created, the cpuset code will update the cpu
affinity of the tasks in the parent cpuset using update_tasks_cpumask().
This function will set the new cpu affinity for those tasks and move it
over to the new cpus. However, if the tasks aren't running at the time,
the move may be delayed until those tasks are waken up. The fact the
task affinity is correct means that the cpuset code has done the right
thing.
I am not sure what tool do you use to check the task's cpus. I believe
the tool may show what cpu the task is previously running on. It does
not means the the task will run on that cpu when it is waken up. It is
only a bug if the task is running and it is on the wrong cpu.
Cheers,
Longman