htop-dev / htop

htop - an interactive process viewer
https://htop.dev/
GNU General Public License v2.0
6.11k stars 411 forks source link

Htop counting network traffic twice on bonded interface #1469

Open itscooldani opened 2 months ago

itscooldani commented 2 months ago

I have ethernet and wifi interfaces bonded together for load balancing, and I'm noticing that htop now shows double the network usage (double the possible network usage - twice my ISP speed) than it did before. I'm assuming this has something to do with counting the physical interfaces AND the virtual bonded interface, which would count every packet twice, but I am unable to confirm this.

I haven't been able to find anywhere which lets me select specific interfaces to use, which would be super handy. If there's no option for that, this can also be a feature request! I'm happy to make a new issue with that though if that's preferable.

Happy to do any digging/further investigation you need, just not sure what I'm looking for or where.

BenBE commented 2 months ago

There's an old feature request for per-interface meters at #200, but that one needs still some thought to create a reasonable UI/UX.

The double-accounting for interfaces is known (cf. #646), and filtering will likely involve a bit more than just bridges.

If you can look for ways in which NIC types can be distinguished to filter out composit devices (bridges, veth pairs, …) would be nice. The implementation of the network meter is cross-platform, thus also things involving *BSD would be of interest. TIA.