在尝试使用bonnie基准测试对某些NFS服务器进行基准测试时,我注意到结果中的一行是延迟值。我想知道是否有人可以解释这个延迟值代表什么。谢谢!
样本结果(强调延迟线):
mshamma@hs1:/mnt/hs18/bonnie$ sudo bonnie -u root -c 100 -s 100000
Using uid:0, gid:0.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version 1.96 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 100 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
hs1 100000M 980 94 107439 10 57596 8 2426 93 126676 9 165.0 15
**Latency 11089us 22143ms 40946ms 18167us 204ms 240ms**
Version 1.96 ------Sequential Create------ --------Random Create--------
hs1 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 1427 9 48 0 231 0 1244 10 52 0 2715 11
**Latency 22582us 406ms 6516ms 5665us 46629us 21379us**
1.96,1.96,hs1,100,1288943643,100000M,,980,94,107439,10,57596,8,2426,93,126676,9,165.0,15,16,,,,,1427,9,48,0,231,0,1244,10,52,0,2715,11,11089us,22143ms,40946ms,18167us,204ms,240ms,22582us,406ms,6516ms,5665us,46629us,21379us
答案 0 :(得分:2)
延迟基本上是告诉硬盘要做什么,等待硬盘将磁头移动到正确位置(如果它不是SSD)所需的时间,等等。如果你花时间读取/写入数据量的线性函数,那就是Y截距。