[问题]求助!SATA硬盘传输速度超慢 仅仅28M/S

为当前最终发行版之前的所有版本提供支持
joyolee
帖子: 83
注册时间: 2005-12-24 14:07
送出感谢: 0
接收感谢: 0

[问题]求助!SATA硬盘传输速度超慢 仅仅28M/S

#1

帖子 joyolee » 2007-04-21 15:48

请各位大大给看下,为啥速度这么慢


内核 2.6.20-15-386

用sudo hdparm -t /dev/sda 查看 速度显示如下

代码: 全选

joyolee@joyolee-PKUUQ:~$ sudo hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:   86 MB in  3.02 seconds =  28.48 MB/sec



用sudo hdparm -I /dev/sda 查看硬盘信息 如下

代码: 全选

joyolee@joyolee-PKUUQ:~$ sudo hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       TOSHIBA MK6032GSX                       
        Serial Number:      95DI0527T
        Firmware Revision:  AS312D  
Standards:
        Supported: 6 5 4 
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  117210240
        LBA48  user addressable sectors:  117210240
        device size with M = 1024*1024:       57231 MBytes
        device size with M = 1000*1000:       60011 MBytes (60 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 8
        Advanced power management level: unknown setting (0x0080)
        Recommended acoustic management value: 254, current value: 128
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
           *    Advanced Power Management feature set
                SET_MAX security extension
           *    Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    IDLE_IMMEDIATE with UNLOAD
           *    SATA-I signaling speed (1.5Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
                frozen
        not     expired: security count
        not     supported: enhanced erase
        46min for SECURITY ERASE UNIT. 
Checksum: correct
[/code]
头像
Element
论坛版主
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China
送出感谢: 0
接收感谢: 0

#2

帖子 Element » 2007-04-21 23:14

element@Tracy:/dev$ sudo hdparm -t hda

hda:
Timing buffered disk reads: 158 MB in 3.03 seconds = 52.13 MB/se
嘿嘿,IDE的。
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星
送出感谢: 1 次
接收感谢: 0

#3

帖子 xhy » 2007-04-22 4:49

/dev/sda:
Timing buffered disk reads: 192 MB in 3.03 seconds = 63.44 MB/sec


未作任何优化。。。。
目前负债150多万
xinjiemail11
帖子: 94
注册时间: 2006-10-15 18:53
送出感谢: 0
接收感谢: 0

#4

帖子 xinjiemail11 » 2007-04-22 7:57

我的raid0都只有70M不到,实在是SATA硬盘需要提高速度了
joyolee
帖子: 83
注册时间: 2005-12-24 14:07
送出感谢: 0
接收感谢: 0

#5

帖子 joyolee » 2007-04-22 14:21

xinjiemail11 写了:我的raid0都只有70M不到,实在是SATA硬盘需要提高速度了

纠结

还是内核问题么?

copy一个文件慢到不能忍了
xinjiemail11
帖子: 94
注册时间: 2006-10-15 18:53
送出感谢: 0
接收感谢: 0

#6

帖子 xinjiemail11 » 2007-04-22 14:24

也许是把,,,我想自己编译内核看看,但目前还是在收集资料...不敢贸然动手啊~~~~
hh2hh
帖子: 4
注册时间: 2005-09-13 16:51
送出感谢: 0
接收感谢: 0

#7

帖子 hh2hh » 2007-04-23 21:28

me too, it is very slow. May be it is a bug.

# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 824 MB in 2.01 seconds = 410.96 MB/sec
Timing buffered disk reads: 88 MB in 3.02 seconds = 29.10 MB/sec


my hard disk is:
# hdparm -i /dev/sda
Model=Hitachi HTS541212H9AT00 , FwRev=HP4OA23C, SerialNo= HP0400BEGPLKNA
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=7528kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma3 udma4 udma5
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7

* signifies the current active mode


# hdparm -I /dev/sda
/dev/sda:

ATA device, with non-removable media
Model Number: Hitachi HTS541212H9AT00
Serial Number: HP0400BEGPLKNA
Firmware Revision: HP4OA23C
Standards:
Used: ATA/ATAPI-7 T13 1532D revision 1
Supported: 7 6 5 4
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 234441648
LBA48 user addressable sectors: 234441648
device size with M = 1024*1024: 114473 MBytes
device size with M = 1000*1000: 120034 MBytes (120 GB)
Capabilities:
LBA, IORDY(can be disabled)
Standby timer values: spec'd by Vendor, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: 128 (0x80)
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
Address Offset Reserved Area Boot
SET_MAX security extension
Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
68min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
送出感谢: 0
接收感谢: 7 次
联系:

#8

帖子 zhuqin_83 » 2007-04-24 2:06

没开启dma。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
joyolee
帖子: 83
注册时间: 2005-12-24 14:07
送出感谢: 0
接收感谢: 0

#9

帖子 joyolee » 2007-04-25 20:46

zhuqin_83 写了:没开启dma。

how to?

Thx, 搜索了一下论坛,没有找到
头像
aqua203
帖子: 283
注册时间: 2007-03-01 21:04
来自: 福建
送出感谢: 0
接收感谢: 0

#10

帖子 aqua203 » 2007-04-25 21:08

hdparm -d0 /dev/hda
关闭dma模式
hdparm -d1 /dev/hda
开启dma模式
以上内容来自《鸟哥的Linux私房菜》
另外可以man以下看看,俺没有试过
ashunter
帖子: 202
注册时间: 2007-02-03 2:46
送出感谢: 0
接收感谢: 0

#11

帖子 ashunter » 2007-04-26 0:05

aqua203 写了:hdparm -d0 /dev/hda
关闭dma模式
hdparm -d1 /dev/hda
开启dma模式
以上内容来自《鸟哥的Linux私房菜》
另外可以man以下看看,俺没有试过
拜托你回帖之前先看清楚。
我们在讨论的是SATA,如果是IDE的还需要讨论么?
头像
bzimage
帖子: 677
注册时间: 2006-03-14 10:25
送出感谢: 1 次
接收感谢: 5 次

#12

帖子 bzimage » 2007-04-26 10:28

ashunter 写了:
aqua203 写了:hdparm -d0 /dev/hda
关闭dma模式
hdparm -d1 /dev/hda
开启dma模式
以上内容来自《鸟哥的Linux私房菜》
另外可以man以下看看,俺没有试过
拜托你回帖之前先看清楚。
我们在讨论的是SATA,如果是IDE的还需要讨论么?

从LZ的hdparm信息来看,LZ的硬盘是ATA的,不是SATA的。可能是LZ看到sda设备名以为是SATA的,此外LZ的dma好像是开着的udma5,之所以速度低,可能是转数低吧,LZ的硬盘是不是笔记本硬盘呢
joyolee
帖子: 83
注册时间: 2005-12-24 14:07
送出感谢: 0
接收感谢: 0

#13

帖子 joyolee » 2007-04-26 11:27

bzimage 写了:
ashunter 写了:
aqua203 写了:hdparm -d0 /dev/hda
关闭dma模式
hdparm -d1 /dev/hda
开启dma模式
以上内容来自《鸟哥的Linux私房菜》
另外可以man以下看看,俺没有试过
拜托你回帖之前先看清楚。
我们在讨论的是SATA,如果是IDE的还需要讨论么?

从LZ的hdparm信息来看,LZ的硬盘是ATA的,不是SATA的。可能是LZ看到sda设备名以为是SATA的,此外LZ的dma好像是开着的udma5,之所以速度低,可能是转数低吧,LZ的硬盘是不是笔记本硬盘呢


恩 是的,是笔记本硬盘
查了一下这个型号 TOSHIBA MK6032GSX 60G
应该是sata而不是ata
转数5400
但是也不应该慢到这个程度


纠结
uninone
帖子: 100
注册时间: 2006-10-19 9:35
送出感谢: 0
接收感谢: 0
联系:

#14

帖子 uninone » 2007-04-30 11:40

uninone@uninone-laptop:~$ sudo hdparm -t /dev/sda
Password:

/dev/sda:
Timing buffered disk reads: 96 MB in 3.05 seconds = 31.48 MB/sec
uninone@uninone-laptop:~$ udo hdparm -I /dev/sda
bash: udo: command not found
uninone@uninone-laptop:~$ sudo hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
Model Number: WDC WD600BEVS-22LAT0
Serial Number: WD-WXE906278803
Firmware Revision: 01.06M01

Standards:
Supported: 7 6 5 4
Likely used: 7
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 112985146
LBA48 user addressable sectors: 112985146
device size with M = 1024*1024: 55168 MBytes
device size with M = 1000*1000: 57848 MBytes (57 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 1
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: unknown setting (0x0080)
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
* SET_MAX security extension
Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
* SATA-I signaling speed (1.5Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Software settings preservation
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
Checksum: correct
uninone@uninone-laptop:~$
GreatWall A92
CPU : CeleronT1600 1.6G*2
MEM : 1024M DDRII800+256M DDRII800
MAI : INTEL G45
HDD : WESTDATA 160G SATA
WLan:3dsp暂时无法驱动
OS:Ubuntu10.04+WinXP
头像
Element
论坛版主
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China
送出感谢: 0
接收感谢: 0

#15

帖子 Element » 2007-04-30 12:34

joyolee 写了: 恩 是的,是笔记本硬盘
查了一下这个型号 TOSHIBA MK6032GSX 60G
应该是sata而不是ata
转数5400
但是也不应该慢到这个程度

纠结
可能被骗了哦,用的ata的应怕,却说是sata的
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
回复

回到 “老旧版本支持”