All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: accounting/psi: document /proc/pressure/irq and irq.pressure
@ 2026-07-23 12:36 Tao Cui
  2026-07-23 13:41 ` Johannes Weiner
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Cui @ 2026-07-23 12:36 UTC (permalink / raw)
  To: Johannes Weiner, Suren Baghdasaryan
  Cc: linux-doc, Peter Zijlstra, Jonathan Corbet, Tao Cui, linux-kernel,
	cui.tao

From: Tao Cui <cuitao@kylinos.cn>

psi.rst lists only cpu, memory and io, omitting the IRQ/SOFTIRQ pressure
exposed as /proc/pressure/irq (and irq.pressure per cgroup) under
CONFIG_IRQ_TIME_ACCOUNTING. admin-guide/cgroup-v2.rst already documents
irq.pressure; bring psi.rst in line.

IRQ pressure is tracked only for the "full" state: there is no "some"
line, and writing a "some" trigger returns EINVAL.

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
---
 Documentation/accounting/psi.rst | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/Documentation/accounting/psi.rst b/Documentation/accounting/psi.rst
index d455db3e5808..6d761625529d 100644
--- a/Documentation/accounting/psi.rst
+++ b/Documentation/accounting/psi.rst
@@ -35,7 +35,8 @@ Pressure interface
 ==================
 
 Pressure information for each resource is exported through the
-respective file in /proc/pressure/ -- cpu, memory, and io.
+respective file in /proc/pressure/ -- cpu, memory, io and, when the
+kernel is built with CONFIG_IRQ_TIME_ACCOUNTING, irq.
 
 The format is as such::
 
@@ -57,6 +58,12 @@ stall state is tracked separately and exported in the "full" averages.
 CPU full is undefined at the system level, but has been reported
 since 5.13, so it is set to zero for backward compatibility.
 
+Unlike the other resources, IRQ pressure is tracked only for the
+"full" state, which accounts for CPU time consumed by interrupt
+handling and therefore unavailable to tasks. The "some" state is not
+reported, and writing a "some" trigger to /proc/pressure/irq fails
+with EINVAL.
+
 The ratios (in %) are tracked as recent trends over ten, sixty, and
 three hundred second windows, which gives insight into short term events
 as well as medium and long term trends. The total absolute stall time
@@ -181,8 +188,9 @@ Cgroup2 interface
 In a system with a CONFIG_CGROUPS=y kernel and the cgroup2 filesystem
 mounted, pressure stall information is also tracked for tasks grouped
 into cgroups. Each subdirectory in the cgroupfs mountpoint contains
-cpu.pressure, memory.pressure, and io.pressure files; the format is
-the same as the /proc/pressure/ files.
+cpu.pressure, memory.pressure, io.pressure and, with
+CONFIG_IRQ_TIME_ACCOUNTING, irq.pressure files; the format is the same
+as the /proc/pressure/ files.
 
 Per-cgroup psi monitors can be specified and used the same way as
 system-wide ones.
-- 
2.43.0


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

* Re: [PATCH] docs: accounting/psi: document /proc/pressure/irq and irq.pressure
  2026-07-23 12:36 [PATCH] docs: accounting/psi: document /proc/pressure/irq and irq.pressure Tao Cui
@ 2026-07-23 13:41 ` Johannes Weiner
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Weiner @ 2026-07-23 13:41 UTC (permalink / raw)
  To: Tao Cui
  Cc: Suren Baghdasaryan, linux-doc, Peter Zijlstra, Jonathan Corbet,
	Tao Cui, linux-kernel

On Thu, Jul 23, 2026 at 08:36:54PM +0800, Tao Cui wrote:
> From: Tao Cui <cuitao@kylinos.cn>
> 
> psi.rst lists only cpu, memory and io, omitting the IRQ/SOFTIRQ pressure
> exposed as /proc/pressure/irq (and irq.pressure per cgroup) under
> CONFIG_IRQ_TIME_ACCOUNTING. admin-guide/cgroup-v2.rst already documents
> irq.pressure; bring psi.rst in line.
> 
> IRQ pressure is tracked only for the "full" state: there is no "some"
> line, and writing a "some" trigger returns EINVAL.
> 
> Signed-off-by: Tao Cui <cuitao@kylinos.cn>

Looks good, thank you.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>

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

end of thread, other threads:[~2026-07-23 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 12:36 [PATCH] docs: accounting/psi: document /proc/pressure/irq and irq.pressure Tao Cui
2026-07-23 13:41 ` Johannes Weiner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.