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

针对服务器硬盘速度读写测试,一般需要测试开启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博客 ” ,链接:http://blog.itpub.net/27067062/viewspace-2127230/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27067062/viewspace-2127230/

你可能感兴趣的:(服务器硬盘读写大文件速度测试)