【问题标题】:In the bonnie benchmark, what does the latency result represent?在 bonnie 基准测试中,延迟结果代表什么?
【发布时间】:2011-05-06 02:36:48
【问题描述】:

在尝试使用 bonnie 基准测试某些 NFS 服务器时,我注意到其中一行结果是延迟值。我想知道是否有人可以解释这个延迟值代表什么。谢谢!

bonnie 结果示例(强调延迟线):

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

【问题讨论】:

    标签: filesystems storage benchmarking


    【解决方案1】:

    延迟基本上是告诉硬盘要做什么、等待硬盘将磁头移动到正确位置(如果它不是 SSD)等等所需的时间。如果您将读取/写入某些内容所需的时间作为数据量的线性函数,那就是 Y 截距。

    【讨论】:

    • 不过,还有更多内容。 OP 的数据显示顺序块输出延迟为 22 秒。很难想象实际上写一个块需要这么长时间的硬盘。一次随机搜索的 0.24 秒也很难想象。特别是考虑到它还说它每秒可以进行 165 次随机搜索,这些数字不匹配。
    猜你喜欢
    • 1970-01-01
    • 2013-07-13
    • 2015-12-15
    • 1970-01-01
    • 1970-01-01
    • 2019-06-22
    • 2021-03-15
    • 2021-05-20
    • 1970-01-01
    相关资源
    最近更新 更多