Linux dstat全性能检测工具

1. ubuntu上工具安装

sudo apt-get install dstat

2. 默认测试

3.测试磁盘写次数

打开工具监控

chenliang@ubuntu_zdh:~$ dstat -d
-dsk/total-
 read  writ
   0     0 
   0     0 

生成1个256M文件

chenliang@ubuntu_zdh:~/smbShare$ dd if=/dev/zero of=./test.file bs=1M count=256

dstat工具监控到有256M的文件写入磁盘

chenliang@ubuntu_zdh:~$ dstat -d
-dsk/total-
 read  writ
   0     0 
   0     0 
  60k   75M
8192B   93M
  20k   72M
   0     0 
   0     0 
   0   112k
   0     0 
   0    16M
   0     0 
   0     0 
   0     0 
   0     0 
   0     0 
   0    28k
   0     0 
   0     0 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章