htop has some new metrics:

The percentage of time spent waiting for a CPU (while runnable). Requires CAP_NET_ADMIN.

The percentage of time spent waiting for the completion of synchronous block I/O. Requires CAP_NET_ADMIN.

The percentage of time spent swapping in pages. Requires CAP_NET_ADMIN.


I added CAP_NET_ADMIN, I do not know if it's correct.
I still do not see these metrics in the column settings.

$ sudo setcap cap_net_admin=eip /usr/bin/htop 

$ getcap /usr/bin/htop 
/usr/bin/htop = cap_net_admin+eip

Ubuntu 18.04.2 LTS
kernel 4.20.17-042017-generic

No, sudo htop doesn't help.

htop 2.1.0 - (C) 2004-2018 Hisham Muhammad Released under the GNU GPL.

  • Thank you for adding the required detail to your question! Great idea to include the kernel version. I did not know what you meant to start with, so I have edited to add links that I think will help others. I thought running as sudo htop should provide any needed capabilities. I do not know the answer to your question. – sourcejedi May 11 '19 at 12:03
  • @Rui F Ribeiro sudo htop works i.e. starts without error, but it does not help with this specific problem. Original wording is clearer. – sourcejedi May 12 '19 at 21:36
  • This is config files: $HOME/.config/htop/htoprc Can anyone send me entries with set columns to be visible? I think that these are the right numbers in the "fields" parameter. – LubieCiastka May 13 '19 at 8:35

You should compile htop source code with --enable--delayacct option, then you can see these metrics in the column setting if you have cap_net_admin permission.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.