1 Commits

Author SHA1 Message Date
Kate Hsuan
308709b8d9 gio: gmemorymonitorpsi: Kernel PSI backend for GMemoryMonitor
The PSI backend is based on Kernel PSI [1]. It monitors the memory
allocation time with in a given time window. If the allocation time
is more than the given threshold, Kernel signal the application to
deliver the memory pressure events.

The current thresholds are:
LOW: 70ms out of 2 seconds for partial stall
MEDIUM: 100ms out of 2 seconds for partial stall
CRITICAL: 100ms out of 2 seconds for full stall

[1] https://docs.kernel.org/accounting/psi.html
2025-07-21 17:39:25 +01:00