Linux下硬盘读写测试以及编译用时分析
来源:互联网 发布:mwc飞控源码 编辑:程序博客网 时间:2024/06/06 19:55
Linux下测试固态硬盘读写速度
主机系统:ubuntu12.04 x64单用户模式下测试
待测试固态硬盘:金士顿240g闪存固态硬盘
mount挂载位置/home/ssd目录
① 在175服务器(4核,16G内存,radio6阵列)上:
使用dpparm指令进行固态硬盘相对普通硬盘读取速度测试:
普通硬盘(3次)读数据分别为(245.2 / 245.3 /245.4 )平均245.3 M/s
固态硬盘(3次)读数据分别为(254.2 / 257.2 /257.5 )平均257.6 M/s
普通硬盘(3次)写数据分别为(121 / 245 /238)平均 245.3 M/s
固态硬盘(3次)写数据分别为(202.2 / 241.2 /245.1 )平均229.5 M/s
普通硬盘:
Make –j4编译android L用时#### make completed successfully ( hh:mm:ss)) ####
Make –j8编译android L用时#### make completed successfully (03:00:17 (hh:mm:ss)) ####
固态硬盘:
Make –j8编译android L用时#### make completed successfully ( 02:53:56 (hh:mm:ss))
Make –j32编译android L用时#### make completed successfully (02:57:52 (hh:mm:ss))
② 在11服务器上(8核,16G内存,一个2T,无阵列)
普通硬盘(3次)读数据分别为(112.9 / 113.3 /116.1 )平均 114.1 M/s
普通硬盘(3次)写数据分别为(115 / 113 / 114 )平均 114 M/s
普通硬盘Make –j8编译android L用时#### make completed successfully (02:25:58)
③ 在12服务器上(8核,20G内存, radio0---2T+500G*2):
普通硬盘(3次)读数据分别为( 388 / 388 / 387 )平均 387.6 M/s
普通硬盘(3次)写数据分别为( 377 / 365 / 335 )平均 359M/s
普通硬盘Make –j8编译android L用时#### make completed successfully (02:05:18)
④ 在13服务器上(8核,12G内存,radio0----2*500G+挂载的240G固态硬盘):
普通硬盘(3次)读数据分别为( 253.8/ 241.7 / 244.3)平均 246.6M/s
固态硬盘(3次)读数据分别为( 258.6/ 256.9 / 258.9 )平均 258.1M/s
普通硬盘(3次)写数据分别为( 209/ 211 / 236)平均 218.6M/s
固态硬盘(3次)写数据分别为( 220/ 230 / 220 )平均 220.3 M/s
普通硬盘Make –j8编译android L用时#### make completed successfully (01:44:45
固态硬盘Make –j8 编译android L####make completed successfully (01:30:00
⑤ 在9服务器上(i5cpu,4核,20G内存,radio 0 阵列,2T硬盘)
普通硬盘(3次)读数据分别为( 201 / 210/ 207 )平均 206M/s
普通硬盘(3次)写数据分别为( 208 / 209/ 201 )平均 206M/s
Radio普通硬盘Make –j8编译android L用时 #### makecompleted successfully (01:59:10)
挂载的普通硬盘Make –j8编译android L用时 #### makecompleted successfully (01:56:49)
⑥ 在3.17服务器上(8核,I7,16G内存,radio-0-------2*1T+1T=3T)
⑦ 在14服务器上(8核,8G内存,radio-0-------2*500G)
普通硬盘(3次)读数据分别为( 260.0 / 261.5 /260 )平均 260.5M/s
普通硬盘(3次)写数据分别为( 129 /134 / 135 )平均 132M/s
普通硬盘Make –j8编译android L用时#### make completed successfully (01:42:47
添加内存到16G后编译用时#### make completed successfully (01:38:52
分析:一、12、13、14服务器相比:内存对编译速度影响不大;核数和磁盘阵列相同时内存大读写速度较快。
二、11与(12、13、14)相比:无阵列比radio 0读写磁盘数据和编译速度都稍慢。
三、175服务器与其他服务器对比:CPU核数对编译速度影响很大。
四、13服务的普通磁盘和固态磁盘对比:固态硬盘编译和读写速度稍快于普通硬盘。
建议:
( 附:1。测试速度与服务器正在使用用户人数情况有关,建议其他用户不登陆时单个用户在关闭其他应用程序情况下进行测试(查看在线用户#who ,查看cpu使用情况#top 或者#top –u 用户名)
2.测试写速度指令 sudo time dd if=/dev/* of=/test.dbf bs=8k count=300000
测试读速度指令 sudo hdparm -tT /dev/* 注:*--为待测试目录)
/dev/sdb 可以通过df –lh 查看待测试文件系统目录所在硬盘
3---用sudo time ddif=/dev/* of=/test.dbf bs=8kcount=300000方式测试目录读速度 和
time dd if=/dev/zero bs=1024count=10000000 of=/10Gb.file (测试纯写速度)相当
.
测试10G数据的纯读写磁盘速度:
写time dd if=/dev/zero bs=1024 count=10000000 of=/10Gb.file
读dd if=/10Gb.file bs=64k |dd of=/dev/null
)
---------孙伟 2015.1.9
- Linux下硬盘读写测试以及编译用时分析
- Linux下硬盘读写测试以及编译用时分析
- linux下硬盘读写速度测试
- linux下测试硬盘读写速度
- linux下硬盘读写速度测试
- Linux下测试SSD硬盘读写速率
- Linux硬盘读写测试
- Linux下用dd命令测试硬盘的读写速度
- linux测试硬盘读写速度
- linux测试硬盘读写速度
- linux测试硬盘读写速度
- linux测试硬盘读写速度
- linux测试硬盘读写速度
- Linux系统硬盘读写测试
- linux测试硬盘读写速度
- linux测试硬盘读写速度
- linux 硬盘读写性能测试
- Linux 硬盘读写速度测试
- linux环境变量之jdk+tomcat+maven
- MySQL学习笔记_11_Linux下C++/C连接MySQL数据库(一)
- MyBatis Invalid bound statement
- 埃拉托斯特尼筛法(Sieve of Eratosthenes)简单c实现
- 黑马程序员——Java高新技术——JDK1.5版本的新特性泛型
- Linux下硬盘读写测试以及编译用时分析
- 设计模式学习--观察者模式(Oberser Pattern)
- hibernate连接mysql配置文件
- 存档IMAP或POP3汇集邮箱
- PMP项目管理之核心:项目经理角色定位
- 图像预处理——二值化(大律法)
- js原型
- 关于 oracle 归档开启以及使用的相关知识
- ubuntu10.04如何升级到12.04