<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

使用 hdparm 测试硬盘速度

2008年4月29日星期二

使用 hdparm 测试硬盘速度:



hdparm linux 测试硬盘及改变硬盘设定的指令


#hdparm -t /dev/hda < - - - 测试硬盘/dev/hda 的速度


如果是scsi 的话/dev/sda , /dev/sdb


#hdparm -c 1 /dev/hda < - - - 开启ide 硬盘的32bit


#hdparm -d 1 /dev/hda < - - - 开启dma mode


这样再次的测试你的硬盘就可以发现你的硬盘便快了



以下是我对三台安装 Debian 操作系统的计算机所做的测试结果:



1×250Gb STAT PC



# hdparm -t /dev/sda2


/dev/sda2:
Timing buffered disk reads: 264 MB in 3.01 seconds = 87.60 MB/sec



2×140Gb SCSI RAID1



# hdparm -t /dev/md0


/dev/md0:
Timing buffered disk reads: 226 MB in 3.02 seconds = 74.83 MB/sec

# hdparm -t /dev/md2


/dev/md2:
Timing buffered disk reads: 208 MB in 3.02 seconds = 68.97 MB/sec
















4×1Tb STAT ES.2 RAID5


# hdparm -t /dev/sda1


/dev/sda1:
Timing buffered disk reads: 226 MB in 3.01 seconds = 75.00 MB/sec
# hdparm -t /dev/sdb1


/dev/sdb1:
Timing buffered disk reads: 344 MB in 3.03 seconds = 113.71 MB/sec
# hdparm -t /dev/sdb2


/dev/sdb2:
Timing buffered disk reads: 318 MB in 3.02 seconds = 105.32 MB/sec






标签:

posted by Caiwangqin, 11:15

0 Comments:

发表评论

订阅 博文评论 [Atom]

<< 主页