From 1bd95983b2703cb313ea301367ff3199fabd1f9d Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 6 Aug 2021 16:45:30 +1000 Subject: Add columns for process autogroup identifier and nice value Adds AGRP (autogroup) and ANI (autogroup nice) columns that report the information from /proc/PID/autogroup, as well as handlers for '{' and '}' to change the autogroup nice value. This is guarded by /proc/sys/kernel/sched_autogroup_enabled such that sampling and/or changing values wont be attempted unless the kernel feature is enabled. Fixes: #720 --- htop.1.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'htop.1.in') diff --git a/htop.1.in b/htop.1.in index 9b81a210..5d00c7cb 100644 --- a/htop.1.in +++ b/htop.1.in @@ -176,6 +176,13 @@ This can only be done by the superuser. .B F8, [ Decrease the selected process's priority (add to 'nice' value) .TP +.B } +Increase the selected process's autogroup priority (subtract from autogroup 'nice' value). +This can only be done by the superuser. +.TP +.B { +Decrease the selected process's autogroup priority (add to autogroup 'nice' value) +.TP .B F9, k "Kill" process: sends a signal which is selected in a menu, to one or a group of processes. If processes were tagged, sends the signal to all tagged processes. @@ -484,6 +491,12 @@ The command name for the process. Requires Linux kernel 2.6.33 or newer. .B EXE The executable file of the process as reported by the kernel. Requires CAP_SYS_PTRACE and PTRACE_MODE_READ_FSCRED. .TP +.B AGRP +The autogroup identifier for the process. Requires Linux CFS to be enabled. +.TP +.B ANI +The autogroup nice value for the process autogroup. Requires Linux CFS to be enabled. +.TP .B All other flags Currently unsupported (always displays '-'). .SH "EXTERNAL LIBRARIES" -- cgit v1.2.3