From b7b66b76a5f01ac570d537d27a7e156af248d6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Mon, 4 Dec 2017 00:15:29 -0200 Subject: Adds support for linux delay accounting (#667) Adds support for showing columns with linux delay accounting. This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan. --- htop.1.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'htop.1.in') diff --git a/htop.1.in b/htop.1.in index 4388be12..cb9adb07 100644 --- a/htop.1.in +++ b/htop.1.in @@ -370,6 +370,15 @@ The I/O scheduling class followed by the priority if the class supports it: \fBB\fR for Best-effort \fBid\fR for Idle .TP +.B PERCENT_CPU_DELAY (CPUD%) +The percentage of time spent waiting for a CPU (while runnable). Requires CAP_NET_ADMIN. +.TP +.B PERCENT_IO_DELAY (IOD%) +The percentage of time spent waiting for the completion of synchronous block I/O. Requires CAP_NET_ADMIN. +.TP +.B PERCENT_SWAP_DELAY (SWAPD%) +The percentage of time spent swapping in pages. Requires CAP_NET_ADMIN. +.TP .B All other flags Currently unsupported (always displays '-'). -- cgit v1.2.3