Skip to content

Commit eed39d4

Browse files
graysky2hauke
authored andcommitted
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: openwrt/openwrt#13819 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent d413163 commit eed39d4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

config/Config-kernel.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,25 @@ if KERNEL_TASKSTATS
333333

334334
endif
335335

336+
config KERNEL_PSI
337+
bool "Compile the kernel with pressure stall information tracking"
338+
help
339+
Collect metrics that indicate how overcommitted the CPU, memory,
340+
and IO capacity are in the system.
341+
342+
If you say Y here, the kernel will create /proc/pressure/ with the
343+
pressure statistics files cpu, memory, and io. These will indicate
344+
the share of walltime in which some or all tasks in the system are
345+
delayed due to contention of the respective resource.
346+
347+
In kernels with cgroup support, cgroups (cgroup2 only) will
348+
have cpu.pressure, memory.pressure, and io.pressure files,
349+
which aggregate pressure stalls for the grouped tasks only.
350+
351+
For more details see Documentation/accounting/psi.rst.
352+
353+
Say N if unsure.
354+
336355
config KERNEL_KALLSYMS
337356
bool "Compile the kernel with symbol table information"
338357
default y if !SMALL_FLASH

target/linux/generic/config-6.6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4758,6 +4758,7 @@ CONFIG_PROC_SYSCTL=y
47584758
# CONFIG_PSB6970_PHY is not set
47594759
# CONFIG_PSE_CONTROLLER is not set
47604760
# CONFIG_PSI is not set
4761+
# CONFIG_PSI_DEFAULT_DISABLED is not set
47614762
# CONFIG_PSTORE is not set
47624763
# CONFIG_PSTORE_BLK is not set
47634764
# CONFIG_PSTORE_COMPRESS is not set

0 commit comments

Comments
 (0)