summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:11:48 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commitfdaa15bd8d6df7dd4721ed70a913865b343a80c7 (patch)
tree2015c85afa9a2167e1c92a151dea924e05c72570 /linux/LinuxProcess.h
parentfee744abd2d7c1a3a9b8fa4ece7ddfc872078850 (diff)
Linux: overhaul io process fields
- avoid UBSAN conversions - print N/A on no data (i.e. as unprivileged user) - fix rate calculation to show bytes (instead of a thousandth) - print bytes as human number (i.e. 8MB) instead of 8388608 - stabilize sorting by adjusting NAN values to very tiny negative number
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r--linux/LinuxProcess.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h
index 2e9a9d13..03103c36 100644
--- a/linux/LinuxProcess.h
+++ b/linux/LinuxProcess.h
@@ -81,15 +81,31 @@ typedef struct LinuxProcess_ {
long m_drs;
long m_lrs;
long m_dt;
+
+ /* Data read (in kilobytes) */
unsigned long long io_rchar;
+
+ /* Data written (in kilobytes) */
unsigned long long io_wchar;
+
+ /* Number of read(2) syscalls */
unsigned long long io_syscr;
+
+ /* Number of write(2) syscalls */
unsigned long long io_syscw;
+
+ /* Storage data read (in kilobytes) */
unsigned long long io_read_bytes;
+
+ /* Storage data written (in kilobytes) */
unsigned long long io_write_bytes;
+
+ /* Storgae data cancelled (in kilobytes) */
unsigned long long io_cancelled_write_bytes;
- unsigned long long io_rate_read_time;
- unsigned long long io_rate_write_time;
+
+ /* Point in time of last io scan (in seconds elapsed since the Epoch) */
+ unsigned long long io_last_scan_time;
+
double io_rate_read_bps;
double io_rate_write_bps;
#ifdef HAVE_OPENVZ

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