hdparm 看看你的硬盘跑多快。。。

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

hdparm 看看你的硬盘跑多快。。。

#1

帖子 iblicf » 2007-05-14 21:05

我的seagate 60G硬盘 ,2M缓存
@MyPC:~$ sudo hdparm -tT /dev/sda <---输这个看看你的
/dev/sda:
Timing buffered disk reads: 118 MB in 3.01 seconds = 39.16 MB/sec :em17
Timing cached reads: 214 MB in 2.01 seconds = 106.48 MB/sec
现在 [ 152 ] 楼的硬盘最牛! :em38
嘿嘿,哪个有我这个快?,不跑应用时,可以稳超320MB/sec。

$ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 3192 MB in 2.00 seconds = 1598.58 MB/sec
Timing buffered disk reads: 882 MB in 3.02 seconds = 292.49 MB/sec

$ sudo fdisk -l

Disk /dev/sda: 583.9 GB, 583998111744 bytes
255 heads, 63 sectors/track, 71000 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24 192748+ 83 Linux
/dev/sda2 25 486 3711015 82 Linux swap / Solaris
/dev/sda3 487 71000 566403705 83 Linux

4个147G的10000转的硬盘组成的raid0。
--------------------------------------------
@MyPC:~$ hdparm

hdparm - get/set hard disk parameters - version v6.9
Usage: hdparm [options] [device] ..
Options:
-a get/set fs readahead
-A set drive read-lookahead flag (0/1)
-b get/set bus state (0 == off, 1 == on, 2 == tristate)
-B set Advanced Power Management setting (1-255)
-c get/set IDE 32-bit IO setting (sudo hdparm c 1 /dev/hda , 设置32位总线)
-C check IDE power mode status
-d get/set using_dma flag (sudo hdparm d 1 /dev/hda , 设置DMA)
--direct use O_DIRECT to bypass page cache for timings
如果系统识别为IDE硬盘,这两个改了可能有提升效果
-D enable/disable drive defect management
-E set cd-rom drive speed
-f flush buffer cache for device on exit
-g display drive geometry
-h display terse usage information
-H read temperature from drive (Hitachi only)
-i display drive identification
-I detailed/current information directly from drive
--Istdin read identify data from stdin as ASCII hex
--Istdout write identify data to stdout as ASCII hex
-k get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254, 128: quiet, 254: fast) (EXPERIMENTAL)
-m get/set multiple sector count
-n get/set ignore-write-errors flag (0/1)
-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P set drive prefetch count
-q change next setting quietly
-Q get/set DMA tagged-queuing depth (if supported)
-r get/set device readonly flag (DANGEROUS to set)
-R register an IDE interface (DANGEROUS)
-s set power-up in standby flag (0/1)
-S set standby (spindown) timeout
-t perform device read timings
-T perform cache read timings
-u get/set unmaskirq flag (0/1)
-U un-register an IDE interface (DANGEROUS)
-v defaults; same as -mcudkrag for IDE drives
-V display program version and exit immediately
-w perform device reset (DANGEROUS)
-W set drive write-caching flag (0/1) (DANGEROUS)
-x tristate device for hotswap (0/1) (DANGEROUS)
-X set IDE xfer mode (DANGEROUS)
-y put IDE drive in standby mode
-Y put IDE drive to sleep
-Z disable Seagate auto-powersaving mode
-z re-read partition table
--security-help display help for ATA security commands
---------------------------------------------------------------------------------------------
how about U ?
上次由 iblicf 在 2008-04-02 9:44,总共编辑 9 次。
头像
zmcbb30
帖子: 2717
注册时间: 2006-09-30 0:32
来自: 巴拉特星系第四行星──海尼森
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 zmcbb30 » 2007-05-14 21:13

这么烂HD?

:em34
头可断,血可流,靓女不可不追求
相艾唔好口,够姜就只抽

BARTON 2500+/1536MDDR400
EP8RDA3G/MX4000 128M64bit 8X
DiamondPlus9-6Y080L0-ATA133
Samsung743DF
HiweedDesktop-1.0
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

#3

帖子 iblicf » 2007-05-14 21:23

zmcbb30 写了:这么烂HD?

:em34
:em19 :em19 这是我的宝贝阿,以后机器扔了也得留着,

跟贴的兄弟,把两个数据发上来看看
头像
sxfbest
帖子: 178
注册时间: 2006-10-01 10:19
送出感谢: 2 次
接收感谢: 0

#4

帖子 sxfbest » 2007-05-14 21:50

我的金钻60G数据
sxf@sxf-ubuntu:~$ sudo hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 174 MB in 3.03 seconds = 57.42 MB/sec
sxf@sxf-ubuntu:~$ sudo hdparm -T /dev/sda

/dev/sda:
Timing cached reads: 1064 MB in 2.00 seconds = 531.44 MB/sec
sxf@sxf-ubuntu:~$
头像
ywj10112004
帖子: 76
注册时间: 2007-01-30 16:49
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 ywj10112004 » 2007-05-14 22:04

迈拓金钻9代80G
/dev/sda:
Timing buffered disk reads: 168 MB in 3.00 seconds = 55.94 MB/sec

/dev/sda:
Timing cached reads: 1232 MB in 2.00 seconds = 615.54 MB/sec
图片
orionline
帖子: 40
注册时间: 2007-04-22 17:14
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 orionline » 2007-05-14 22:56

我的40G迈拓
orion@orionline:~$ sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 818 MB in 2.00 seconds = 408.62 MB/sec
Timing buffered disk reads: 156 MB in 3.24 seconds = 48.20 MB/sec
orionline
帖子: 40
注册时间: 2007-04-22 17:14
送出感谢: 0
接收感谢: 0
联系:

#7

帖子 orionline » 2007-05-14 22:59

顺便问一下,我的硬盘明明是IDE的,feisty为什么认成/dev/sda?

ubuntu 6.10能认成/dev/hda。
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

#8

帖子 iblicf » 2007-05-14 23:09

我的也是IDE硬盘,似乎feisty都认作scasi 硬盘了,又或者只是个名称的差别
头像
adqin
帖子: 1417
注册时间: 2007-01-24 22:07
来自: http://adqin.cn
送出感谢: 0
接收感谢: 0
联系:

#9

帖子 adqin » 2007-05-15 0:35

adqin@adqin-ubuntu:~$ sudo hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 120 MB in 3.01 seconds = 39.91 MB/sec
adqin@adqin-ubuntu:~$ sudo hdparm -T /dev/sda

/dev/sda:
Timing cached reads: 1478 MB in 2.00 seconds = 738.95 MB/sec
mine。。。
头像
stlxv
论坛版主
帖子: 8273
注册时间: 2006-05-03 0:39
来自: المريخ
送出感谢: 0
接收感谢: 1 次

Re: hdparm 看看你的硬盘跑多快。。。

#10

帖子 stlxv » 2007-05-15 1:01

iblicf 写了:我的seagate 60G硬盘 ,2M缓存
weiyh@MyPC:~$ sudo hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 118 MB in 3.01 seconds = 39.16 MB/sec :em17

weiyh@MyPC:~$ sudo hdparm -T /dev/sda
/dev/sda:
Timing cached reads: 214 MB in 2.01 seconds = 106.48 MB/sec
--------------------------------------------
weiyh@MyPC:~$ hdparm

hdparm - get/set hard disk parameters - version v6.9
Usage: hdparm [options] [device] ..
Options:
-a get/set fs readahead
-A set drive read-lookahead flag (0/1)
-b get/set bus state (0 == off, 1 == on, 2 == tristate)
-B set Advanced Power Management setting (1-255)
-c get/set IDE 32-bit IO setting (sudo hdparm c 1 /dev/sda , 设置32位总线)
-C check IDE power mode status
-d get/set using_dma flag (sudo hdparm d 1 /dev/sda , 设置DMA)
--direct use O_DIRECT to bypass page cache for timings
-D enable/disable drive defect management
-E set cd-rom drive speed
-f flush buffer cache for device on exit
-g display drive geometry
-h display terse usage information
-H read temperature from drive (Hitachi only)
-i display drive identification
-I detailed/current information directly from drive
--Istdin read identify data from stdin as ASCII hex
--Istdout write identify data to stdout as ASCII hex
-k get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254, 128: quiet, 254: fast) (EXPERIMENTAL)
-m get/set multiple sector count
-n get/set ignore-write-errors flag (0/1)
-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P set drive prefetch count
-q change next setting quietly
-Q get/set DMA tagged-queuing depth (if supported)
-r get/set device readonly flag (DANGEROUS to set)
-R register an IDE interface (DANGEROUS)
-s set power-up in standby flag (0/1)
-S set standby (spindown) timeout
-t perform device read timings
-T perform cache read timings
-u get/set unmaskirq flag (0/1)
-U un-register an IDE interface (DANGEROUS)
-v defaults; same as -mcudkrag for IDE drives
-V display program version and exit immediately
-w perform device reset (DANGEROUS)
-W set drive write-caching flag (0/1) (DANGEROUS)
-x tristate device for hotswap (0/1) (DANGEROUS)
-X set IDE xfer mode (DANGEROUS)
-y put IDE drive in standby mode
-Y put IDE drive to sleep
-Z disable Seagate auto-powersaving mode
-z re-read partition table
--security-help display help for ATA security commands
---------------------------------------------------------------------------------------------
how about U ?

金钻80G2M,好奇怪怎么变成sda了……

代码: 全选

stlxv@stlxvcomputer:~/tmp$ sudo hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:   74 MB in  3.05 seconds =  24.23 MB/sec
stlxv@stlxvcomputer:~/tmp$ sudo hdparm -T /dev/sda

/dev/sda:
 Timing cached reads:   698 MB in  2.00 seconds = 349.00 MB/sec
PHP是最好的语言!不服来战!
头像
stlxv
论坛版主
帖子: 8273
注册时间: 2006-05-03 0:39
来自: المريخ
送出感谢: 0
接收感谢: 1 次

#11

帖子 stlxv » 2007-05-15 1:02

orionline 写了:顺便问一下,我的硬盘明明是IDE的,feisty为什么认成/dev/sda?

ubuntu 6.10能认成/dev/hda。
我的原来是hdc也被认成sda了

看来是更先进了,不用管怎么接了
PHP是最好的语言!不服来战!
fli2000
帖子: 9
注册时间: 2006-10-30 0:08
送出感谢: 0
接收感谢: 0

#12

帖子 fli2000 » 2007-05-15 3:48

ST3250820AS

代码: 全选

fli2000@fli2000-desktop:~$ sudo hdparm -Tt /dev/sdb

/dev/sdb:
 Timing cached reads:   3134 MB in  2.00 seconds = 1566.63 MB/sec
 Timing buffered disk reads:  242 MB in  3.01 seconds =  80.46 MB/sec
andrewpsy
帖子: 95
注册时间: 2006-09-08 8:09
送出感谢: 0
接收感谢: 0

#13

帖子 andrewpsy » 2007-05-15 9:06

andrew@lovewakako:~$ sudo hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 220 MB in 3.01 seconds = 73.17 MB/sec
andrew@lovewakako:~$


奇怪啊,为啥俺只有一个数据啊。
头像
alinmn
帖子: 185
注册时间: 2006-05-19 21:42
来自: NIT
送出感谢: 0
接收感谢: 0

#14

帖子 alinmn » 2007-05-15 9:43

andrewpsy 写了:andrew@lovewakako:~$ sudo hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 220 MB in 3.01 seconds = 73.17 MB/sec
andrew@lovewakako:~$


奇怪啊,为啥俺只有一个数据啊。
加 -T选项
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

#15

帖子 iblicf » 2007-05-15 11:21

看来是我的硬盘最惨,,我玩war3,如果让电脑发展起来基本就卡死了,囗囗囗囗 :em36 :em37
回复

回到 “常用硬件支持”