summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Audia2023-10-29 08:32:21 +0000
committerPetr Štetiar2024-11-28 18:49:35 +0000
commit9e73f794adc8fae59c8ff45aed2d99e4b43cc2d5 (patch)
tree6eca5398d615e6050c1dcfce2d78f7287116f844
parentc312295b5682295915109300c953c277d3fd420c (diff)
downloadopenwrt-9e73f794adc8fae59c8ff45aed2d99e4b43cc2d5.tar.gz
kernel: enable pressure interface
PSI provides a canonical way to see resource pressure increases as they develop, with pressure metrics for three major resources: memory, CPU, and IO. PSI stats are like barometers that provide fair warning of impending resource shortages, enabling users to take more proactive, granular, and nuanced steps when resources start becoming scarce. References: * https://www.kernel.org/doc/html/latest/accounting/psi.html * https://lwn.net/Articles/759781/ Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000 Run-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/13819 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit eed39d45c2ff901b5327c7ab63c9131166e3140e) Link: https://github.com/openwrt/openwrt/pull/17097 Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--config/Config-kernel.in19
-rw-r--r--target/linux/generic/config-6.61
2 files changed, 20 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 0fa039db40..91678cf2a6 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -333,6 +333,25 @@ if KERNEL_TASKSTATS
endif
+config KERNEL_PSI
+ bool "Compile the kernel with pressure stall information tracking"
+ help
+ Collect metrics that indicate how overcommitted the CPU, memory,
+ and IO capacity are in the system.
+
+ If you say Y here, the kernel will create /proc/pressure/ with the
+ pressure statistics files cpu, memory, and io. These will indicate
+ the share of walltime in which some or all tasks in the system are
+ delayed due to contention of the respective resource.
+
+ In kernels with cgroup support, cgroups (cgroup2 only) will
+ have cpu.pressure, memory.pressure, and io.pressure files,
+ which aggregate pressure stalls for the grouped tasks only.
+
+ For more details see Documentation/accounting/psi.rst.
+
+ Say N if unsure.
+
config KERNEL_KALLSYMS
bool "Compile the kernel with symbol table information"
default y if !SMALL_FLASH
diff --git a/target/linux/generic/config-6.6 b/target/linux/generic/config-6.6
index 9eec780b53..105dc0d344 100644
--- a/target/linux/generic/config-6.6
+++ b/target/linux/generic/config-6.6
@@ -4758,6 +4758,7 @@ CONFIG_PROC_SYSCTL=y
# CONFIG_PSB6970_PHY is not set
# CONFIG_PSE_CONTROLLER is not set
# CONFIG_PSI is not set
+# CONFIG_PSI_DEFAULT_DISABLED is not set
# CONFIG_PSTORE is not set
# CONFIG_PSTORE_BLK is not set
# CONFIG_PSTORE_COMPRESS is not set