Re: [PATCH v5 2/5] cgroup/pids: Make event counters hierarchical

2024-07-29 Thread Xiu Jianfeng
On 2024/7/25 17:38, Michal Koutný wrote: > Hello Jianfeng. > > On Tue, Jul 16, 2024 at 11:27:39AM GMT, xiujianfeng > wrote: >> On 2024/7/3 14:59, xiujianfeng wrote: > ... >>> for (; parent_pids(p); p = parent_pids(p)) { >>> if (p == pids_over_limit) { >>>

Re: [PATCH v5 2/5] cgroup/pids: Make event counters hierarchical

2024-07-25 Thread Michal Koutný
Hello Jianfeng. On Tue, Jul 16, 2024 at 11:27:39AM GMT, xiujianfeng wrote: > On 2024/7/3 14:59, xiujianfeng wrote: ... > > for (; parent_pids(p); p = parent_pids(p)) { > > if (p == pids_over_limit) { > > limit = true; > > at

Re: [PATCH v5 2/5] cgroup/pids: Make event counters hierarchical

2024-07-15 Thread xiujianfeng
Hi, Friendly ping, more comment as below. On 2024/7/3 14:59, xiujianfeng wrote: > > > On 2024/5/21 17:21, Michal Koutný wrote: >> The pids.events file should honor the hierarchy, so make the events >> propagate from their origin up to the root on the unified hierarchy. The >> legacy behavior re

Re: [PATCH v5 2/5] cgroup/pids: Make event counters hierarchical

2024-07-03 Thread xiujianfeng
On 2024/5/21 17:21, Michal Koutný wrote: > The pids.events file should honor the hierarchy, so make the events > propagate from their origin up to the root on the unified hierarchy. The > legacy behavior remains non-hierarchical. > > Signed-off-by: Michal Koutný > -- [...] > diff --git a/kerne

[PATCH v5 2/5] cgroup/pids: Make event counters hierarchical

2024-05-21 Thread Michal Koutný
The pids.events file should honor the hierarchy, so make the events propagate from their origin up to the root on the unified hierarchy. The legacy behavior remains non-hierarchical. Signed-off-by: Michal Koutný --- Documentation/admin-guide/cgroup-v2.rst | 9 +++-- kernel/cgroup/pids.c