linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: add example for psi info
@ 2026-07-26 13:41 Xavier Claude
  2026-07-27 17:04 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Xavier Claude @ 2026-07-26 13:41 UTC (permalink / raw)
  To: linux-doc; +Cc: Xavier Claude

Provide an non zero example with explanation of the values.

Signed-off-by: Xavier Claude <contact@xavierclaude.be>
---
 Documentation/accounting/psi.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/accounting/psi.rst b/Documentation/accounting/psi.rst
index d455db3e5808..dadab65f872d 100644
--- a/Documentation/accounting/psi.rst
+++ b/Documentation/accounting/psi.rst
@@ -64,6 +64,20 @@ as well as medium and long term trends. The total absolute stall time
 spikes which wouldn't necessarily make a dent in the time averages,
 or to average trends over custom time frames.
 
+For example, the following output::
+
+	some avg10=7.52 avg60=12.59 avg300=24.82 total=2128219913967
+	full avg10=5.70 avg60=10.56 avg300=22.40 total=2014527537356
+
+This means that for the last 10 seconds, 5.7% of the time (so 0.5
+seconds) was lost on cpu cycles because all the running processes where
+waiting on the resource. On the same period, some tasks where not
+schedulable during 7.5% of the time (so 750ms) because they were waiting
+on the resource. But for a longer period of 300 seconds, we see that
+more than 20% of the time (so 60 seconds) is wasted due to resource
+contention. Moreover, since the total time wasted because tasks were
+waiting on the resource is 2014527.5 seconds.
+
 Monitoring for pressure thresholds
 ==================================
 
-- 
2.55.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-27 17:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26 13:41 [PATCH] docs: add example for psi info Xavier Claude
2026-07-27 17:04 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).