summaryrefslogtreecommitdiffstats
path: root/linux/Platform.h
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2019-02-11 20:04:12 +0200
committerRan Benita <ran234@gmail.com>2019-02-13 22:38:10 +0200
commit08feb8585bb4aa4bb9b1cc0025a57658f95ef437 (patch)
tree44ab24516bba2056178283295581b29cf2b54816 /linux/Platform.h
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Add pressure stall information (PSI) meters on Linux
The pressure stall information (PSI) metrics provide useful information on delays caused by waiting for CPU, IO and memory. Particularly on busy servers it can provide a quick overview of what's "slowing things down". This feature is supported on Linux >= 4.20. The interface is documented here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/accounting/psi.txt These links provide rationale: https://lwn.net/Articles/759781/ https://facebookmicrosites.github.io/psi/ The following metrics are added, corresponding to the currently exposed lines (see `head /proc/pressure/*`): - PressureStallCPUSome - PressureStallIOSome - PressureStallIOFull - PressureStallMemorySome - PressureStallMemoryFull The color scheme is the same as that used for Load Average, however I gave it separate entries just in case someone wants to change them specifically. Tested on 4.20.7-arch1-1-ARCH, on the linux platform. Also tested that other platforms still compile (changed configure to use the unsupported platform). Closes #879.
Diffstat (limited to 'linux/Platform.h')
-rw-r--r--linux/Platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/Platform.h b/linux/Platform.h
index b0456e5b..129bc07b 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -45,4 +45,6 @@ void Platform_setSwapValues(Meter* this);
char* Platform_getProcessEnv(pid_t pid);
+void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy