[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <924a8a12-ed89-45e5-900d-6d937108ec3e@cdn77.com>
Date: Mon, 28 Jul 2025 13:29:29 +0200
From: Daniel Sedlak <daniel.sedlak@...77.com>
To: Tejun Heo <tj@...nel.org>
Cc: Shakeel Butt <shakeel.butt@...ux.dev>, Michal Koutný
<mkoutny@...e.com>, Kuniyuki Iwashima <kuniyu@...gle.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>, Jonathan Corbet <corbet@....net>,
Neal Cardwell <ncardwell@...gle.com>, David Ahern <dsahern@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Yosry Ahmed <yosry.ahmed@...ux.dev>, linux-mm@...ck.org,
netdev@...r.kernel.org, Johannes Weiner <hannes@...xchg.org>,
Michal Hocko <mhocko@...nel.org>, Roman Gushchin <roman.gushchin@...ux.dev>,
Muchun Song <muchun.song@...ux.dev>, cgroups@...r.kernel.org,
Matyas Hurtik <matyas.hurtik@...77.com>
Subject: Re: [PATCH v3] memcg: expose socket memory pressure in a cgroup
On 7/25/25 2:44 AM, Tejun Heo wrote:
> On Thu, Jul 24, 2025 at 10:43:27AM +0200, Daniel Sedlak wrote:
> ...
>> Currently, we know the following information:
>>
>> - we know when the pressure starts
>> - and we know when the pressure ends if not rearmed (start time + HZ)
>>
>> From that, we should be able to calculate a similar triplet to the pressure
>> endpoints in the cgroups (cpu|io|memory|irq).pressure. That is, how much %
>> of time on average was spent under pressure for avg10, avg60, avg300 i.e.
>> average pressure over the past 10 seconds, 60 seconds, and 300 seconds,
>> respectively. (+ total time spent under pressure)
>
> Let's just add the cumulative duration that socket pressure was present.
>
> Thanks.
>
Ok, I will send it as v4, if no other objections are made. In which
units the duration should be? Milliseconds? It can also be microseconds,
which are now used in (cpu|io|memory|irq).pressure files.
Thanks!
Daniel
Powered by blists - more mailing lists