Re: [RFC PATCH] cpuset: remove /proc/PID/cpuset

From: Tejun Heo
Date: Fri Feb 02 2024 - 12:11:56 EST


On Fri, Feb 02, 2024 at 06:49:11PM +0800, brookxu.cn wrote:
> From: Chunguang Xu <chunguang.xu@xxxxxxxxxx>
>
> Now we can get all cgroup paths from /proc/PID/cgroup for
> a long time, so it maybe useless to keep /proc/PID/cpuset,
> besides the path get from /proc/PID/cpuset is not consistent
> with /proc/PID/cgroup in default hierarchy, so now we may
> can safely remove /proc/PID/cpuset to avoid the mismatch.
>
> root@test:~# cat /proc/1186/cgroup
> 0::/system.slice/lmeter.service

I don't think we can remove it, unfortunately. We can try to deprecate it
and annoy people who use it over time and eventually remove it, but I don't
see a reason why we should do that. It doesn't get in anyone's way, so let's
let it be.

Thanks.

--
tejun