linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: Xavier Claude <contact@xavierclaude.be>, linux-doc@vger.kernel.org
Cc: Xavier Claude <contact@xavierclaude.be>, linux-mm@kvack.org
Subject: Re: [PATCH] docs: add example for psi info
Date: Mon, 27 Jul 2026 11:04:07 -0600	[thread overview]
Message-ID: <87tspkicu0.fsf@trenco.lwn.net> (raw)
In-Reply-To: <20260726134037.24412-1-contact@xavierclaude.be>

Xavier Claude <contact@xavierclaude.be> writes:

> 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(+)

This may be a good change, but you really want the memory-management
developers to look at it...adding linux-mm in the hopes that might make
it happen.

Thanks,

jon

> 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

      reply	other threads:[~2026-07-27 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-26 13:41 [PATCH] docs: add example for psi info Xavier Claude
2026-07-27 17:04 ` Jonathan Corbet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tspkicu0.fsf@trenco.lwn.net \
    --to=corbet@lwn.net \
    --cc=contact@xavierclaude.be \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).