|
|
900e1b |
From 23e523b6b9784390c7ce2c5af654ab497fb10aaf Mon Sep 17 00:00:00 2001
|
|
|
900e1b |
From: Jose Castillo <jcastillo@redhat.com>
|
|
|
900e1b |
Date: Wed, 8 Sep 2021 09:25:24 +0200
|
|
|
900e1b |
Subject: [PATCH] [kernel] Capture Pressure Stall Information
|
|
|
900e1b |
|
|
|
900e1b |
Kernel 4.20 includes PSI metrics for CPU, memeory and IO.
|
|
|
900e1b |
The feature is enabled after adding "psi=1" as
|
|
|
900e1b |
kernel boot parameter.
|
|
|
900e1b |
The information is captured in files
|
|
|
900e1b |
in the directory /proc/pressure.
|
|
|
900e1b |
|
|
|
900e1b |
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
|
|
|
900e1b |
---
|
|
|
900e1b |
sos/report/plugins/kernel.py | 3 ++-
|
|
|
900e1b |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
900e1b |
|
|
|
900e1b |
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py
|
|
|
900e1b |
index 8c5e5e11..803f5e30 100644
|
|
|
900e1b |
--- a/sos/report/plugins/kernel.py
|
|
|
900e1b |
+++ b/sos/report/plugins/kernel.py
|
|
|
900e1b |
@@ -112,7 +112,8 @@ class Kernel(Plugin, IndependentPlugin):
|
|
|
900e1b |
"/sys/kernel/debug/extfrag/unusable_index",
|
|
|
900e1b |
"/sys/kernel/debug/extfrag/extfrag_index",
|
|
|
900e1b |
clocksource_path + "available_clocksource",
|
|
|
900e1b |
- clocksource_path + "current_clocksource"
|
|
|
900e1b |
+ clocksource_path + "current_clocksource",
|
|
|
900e1b |
+ "/proc/pressure/"
|
|
|
900e1b |
])
|
|
|
900e1b |
|
|
|
900e1b |
if self.get_option("with-timer"):
|
|
|
900e1b |
--
|
|
|
900e1b |
2.31.1
|
|
|
900e1b |
|