ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 服务器硬盘读写大文件速度测试

服务器硬盘读写大文件速度测试

原创 Linux操作系统 作者:yepkeepmoving 时间:2016-10-27 17:12:33 0 删除 编辑
针对服务器硬盘速度读写测试,一般需要测试开启cache和关闭cache的情况,这里仅提供简单的大文件读写测试,从读写速度可以大概了解磁盘读写性能,具体测试内容如下:


两服务器硬盘读写测试:
首先要系统的磁盘对应的block size大小:tune2fs -l /dev/sda1 |grep 'Block size'
    查看系统页大小:   getconf PAGESIZE

系统1:

写速度测试
date;dd if=/dev/zero of=/home/dbamob/tools/10GB bs=4096 count=2621440;date
Thu Oct 27 16:06:49 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 16.6973 s, 643 MB/s
Thu Oct 27 16:07:06 CST 2016

读速度测试

date ;dd if=/home/dbamob/tools/10GB  bs=4096 of=/dev/null;date
Thu Oct 27 16:08:39 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 13.8736 s, 774 MB/s
Thu Oct 27 16:08:53 CST 2016


系统2:

写测试

date;dd if=/dev/zero of=/home/dbamob/tools/10GB bs=4096 count=2621440;date
Thu Oct 27 16:45:46 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 223.38 s, 48.1 MB/s
Thu Oct 27 16:49:29 CST 2016

读测试

date ;dd if=/home/dbamob/tools/10GB  bs=4096 of=/dev/null;date
Thu Oct 27 16:51:54 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 137.562 s, 78.1 MB/s
Thu Oct 27 16:54:11 CST 2016

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27067062/viewspace-2127230/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-12-08

  • 博文量
    76
  • 访问量
    193270