在Linux上是否有htop/top,我可以根据网络使用情况对进程进行排序?
还iftop:
显示接口带宽使用情况 iftop对网络使用的影响就像top(1)对CPU使用的影响一样。它侦听指定接口上的网络流量,并显示主机对当前带宽使用情况的表。方便回答“为什么我们的ADSL链接这么慢?”的问题…
NetHogs可能就是你要找的:
a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth. Since NetHogs heavily relies on /proc, most features are only available on Linux. NetHogs can be built on Mac OS X and FreeBSD, but it will only show connections, not processes...