Re: [PATCH net-next,v2] cgroup, netclassid: on modifying netclassid in cgroup, only consider the main process.

From: Simon Horman
Date: Mon Oct 16 2023 - 05:28:40 EST


On Thu, Oct 12, 2023 at 05:03:30PM +0800, Liansen Zhai wrote:
> When modifying netclassid, the command("echo 0x100001 > net_cls.classid")
> will take more time on many threads of one process, because the process
> create many fds.
> for example, one process exists 28000 fds and 60000 threads, echo command
> will task 45 seconds.
> Now, we only consider the main process when exec "iterate_fd", and the
> time is about 52 milliseconds.
>
> Signed-off-by: Liansen Zhai <zhailiansen@xxxxxxxxxxxx>

Thanks for addressing my review of v1.

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>