磁盘基准测试Bonnie++

        Bonnie++是一种用于测量下层文件系统的性能并确定其瓶颈的文件系统测试。Bonnie++主要执行一组串行读写测试以及一些随机读写测试。Bonnie++可以测量每次单字符模式和每次单个块模式下的读写操作。每次单字符模式的测试通过操作系统的getc()和putc函数来测量stdio库函数的开销,而块传输以极小的额外开销通过read()和write()系统调用来测量文件系统吞吐率和延迟。

在/usr/local/sbin目录下执行bonnie++  -u root

[root@localhost sbin]# ./bonnie++  -u root
Using uid:0, gid:0.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...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.03e       ------Sequential Output------ --Sequential Input- --Random-
                    -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
localhost.locald 2G 75121  53 66342   4 26189   3 54210  41 69728   5 114.9   1
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++  8594  13
localhost.localdomain,2G,75121,53,66342,4,26189,3,54210,41,69728,5,114.9,1,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,8594,13
[root@localhost sbin]# 

 

 

 

 

参考资料:linux服务器性能优化

 

 

 

 

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

盼盼编程

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值