htop icon indicating copy to clipboard operation
htop copied to clipboard

feature wish: show network bandwidth usage per process

Open ncqgm opened this issue 4 years ago • 6 comments

Could you add a column for the above ?

For examples see nethogs(8): https://github.com/raboof/nethogs

Thanks !

ncqgm avatar Sep 26 '20 16:09 ncqgm

Looking at that implementation this looks like it might conflict with the current model of execution within htop as libnethogs seems to implement its own event loop. Thus I basically see two ways forward on this:

  1. Reimplement the libnethogs logic in htop
  2. Patch upstream libnethogs to allow for its event loop to be nested similar to e.g. libcurl.

BenBE avatar Sep 26 '20 20:09 BenBE

For reference ( in case it helps / provides ideas somehow), there's also nettop (it doesn't provide it's own library like nethogs, however, i've personally found it to be more reliable).

alicektx avatar Sep 27 '20 08:09 alicektx

This would be so nice. I often find myself wanting to monitor CPU+RAM+Network(+Disk) simultaneously and ideally all in one view.

black-snow avatar Apr 07 '22 10:04 black-snow

Hi. I am interested in this feature too. I would like to take it up.

valdaarhun avatar Jul 07 '23 09:07 valdaarhun

While you work on a patch, please keep in mind to allow this feature to work across platforms, even if you are only implementing it for a few. Ideally, at least two platforms should be covered.

BenBE avatar Jul 09 '23 13:07 BenBE

While you work on a patch, please keep in mind to allow this feature to work across platforms, even if you are only implementing it for a few. Ideally, at least two platforms should be covered.

Sure thing!

valdaarhun avatar Jul 11 '23 20:07 valdaarhun