随笔-性能分析-工具dstat

比较常用来看网卡流量

dstat -t --bits --cpu --disk --page --sys --mem --proc --io --fs --net -N enp2s0 --udp --tcp --vm --int -I 133

133为网卡enp2s0的中断号。

$ dstat -t --bits --cpu --disk --page --sys --mem --proc --io --fs --net -N enp2s0 --udp --tcp --vm --int -I 133
----system---- --total-cpu-usage-- -dsk/total- ---paging-- ---system-- ------memory-usage----- ---procs--- --io/total- --filesystem- -net/enp2s0 ---udp--- ------tcp-sockets------- -----virtual-memory---- inter
     time     |usr sys idl wai stl| read  writ|  in   out | int   csw | used  free  buff  cach|run blk new| read  writ|files  inodes| recv  send|lis  act |lis  act  syn  tim  clo |majpf minpf alloc  free| 133 
10-03 15:52:10|  3   2  94   0   0|  41M 5067k|3686B   13k|  12k   36k|11.5G  382M 19.2M 4520M|1.0   0  16|73.1  38.6 |34560    150k|   0     0 | 32    1 | 33  185   11    9   45 |   3  8502    11k   11k| 116 
10-03 15:52:11|  2   1  96   0   0|9372k  202M|   0     0 |8148    18k|11.5G  357M 19.7M 4529M|  0   0  20|58.0   220 |34592    150k|  42k 1336b| 32    1 | 33  183   11    9   46 |   0  2806  7290  5047 |  78 
10-03 15:52:12|  2   1  96   0   0|   0   393k|   0     0 |9050    20k|11.5G  363M 19.7M 4529M|  0   0  39|   0  8.00 |34560    150k|  47k 3360b| 32    1 | 33  183   11    9   46 |   0  5588  5958  7512 |  85 
10-03 15:52:13|  2   1  97   0   0|   0   262k|   0     0 |8399    19k|11.5G  369M 19.7M 4525M|2.0   0  19|   0  6.00 |34592    150k|  32k 1928b| 32    1 | 33  183    8    9   46 |   0  3500  4012  5508 |  66 

more:

dstat --help
dstat --list
posted @ 2025-03-10 15:54  LiYanbin  阅读(13)  评论(0)    收藏  举报