Thread (20 messages) 20 messages, 7 authors, 2025-07-30

Re: [PATCH v3] memcg: expose socket memory pressure in a cgroup

From: Daniel Sedlak <hidden>
Date: 2025-07-28 11:29:38
Also in: cgroups, linux-mm

On 7/25/25 2:44 AM, Tejun Heo wrote:
On Thu, Jul 24, 2025 at 10:43:27AM +0200, Daniel Sedlak wrote:
...
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help