On 1/16/25 4:56 AM, Michal Koutný wrote:
The cpuset file is a legacy attribute that is bound primarily to cpuset v1 (and it'd be equal to effective /proc/$pid/cgroup path on the unified hierarchy). Followup to commit b0ced9d378d49 ("cgroup/cpuset: move v1 interfaces to cpuset-v1.c") and hide CONFIG_PROC_PID_CPUSET under CONFIG_CPUSETS_V1. Drop an obsolete comment too. Signed-off-by: Michal Koutný <mkoutny@xxxxxxxx>
I do have some reservation in taking out /proc/<pid>/cpuset by default as CPUSETS_V1 is off by default. This may break some existing user scripts.
Also the statement that the cpuset file is the same as the path in cgroup file in unified hierarchy is not true if that cgroup doesn't have cpuset enabled.
Cheers, Longman