Re: [RFC] psi: Add additional PSI counters for each type of memory pressure

From: Georgi Djakov
Date: Wed Nov 10 2021 - 11:45:50 EST



On 10.11.21 18:07, Michal Hocko wrote:
On Wed 10-11-21 07:36:37, Georgi Djakov wrote:
From: Carlos Ramirez <carlrami@xxxxxxxxxxxxxx>

Calculates psi totals for memory pressure subevents:
compaction, thrashing, direct compaction, direct reclaim, and kswapd0.
Uses upper 16 bits of psi_flags to track memory subevents.

Could you elaborate on the definition of those events please? That
should also go to Documentation (Documentation/accounting/psi.rst)

Sure, will add them to the Documentation! The idea is to add some statistics for the memory pressure subevents that helps to figure
out the sources of the pressure. This is just an RFC to gather
initial feedback if such approach would be acceptable.

Thanks!
Georgi