imsnif / bandwhich

Terminal bandwidth utilization tool
MIT License
9.15k stars 275 forks source link

bandwhich CPU utilization is too high #397

Open handewo opened 3 months ago

handewo commented 3 months ago

bandwhich CPU utilization is too higher than iftop Here is two test case on x86_64 platform: Case I image image Case II image image

flxo commented 3 months ago

Here is a profile from bandwhich cc5685b captured with samply on a x86_64 Linux (6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC).

I also used iperf3 (locally).

You see in the profile that bandwhich spends ~70% in recvfrom and ~23% in pselect - both sys calls.