[问题]ubuntu 7.04 ata硬盘被认成sata硬盘,且性能极差,如何解决?

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
bluebirdyy
帖子: 7
注册时间: 2006-04-09 10:42
送出感谢: 0
接收感谢: 0

[问题]ubuntu 7.04 ata硬盘被认成sata硬盘,且性能极差,如何解决?

#1

帖子 bluebirdyy » 2007-08-27 11:14

机子里是ide硬盘,但在7.04里被认成了sata

已经无法使用hdparm

#hdparm -c /dev/sda

/dev/sda:
IO_support = 0 (default 16-bit)

以上说明运行在16 bit

#hdparm -c1 /dev/sda

...
HDIO_SET32BIT failed: Invalid argument

想改成32位,失败,想改成DMA也失败

#hdparm -tT /dev/sda
Timimg cached reads: .... =371.78MB/sec
Timing buffered disk reads: .....= 8.66MB/sec


硬盘速度很低

请问如何优化?
kane_9909
帖子: 88
注册时间: 2007-05-09 14:34
送出感谢: 0
接收感谢: 0

#2

帖子 kane_9909 » 2007-08-28 12:43

sudo hdparm -A 1 -a 2048 /dev/sda
头像
wdw443
帖子: 58
注册时间: 2006-11-19 18:27
来自: 深圳
送出感谢: 0
接收感谢: 0

#3

帖子 wdw443 » 2007-09-03 22:47

我的IDE硬盘在 Feitsy下也被识别成了SCSI类型的,
Timing buffered disk reads: 104 MB in 3.02 seconds = 34.42 MB/sec

然后我重新编译了内核,让硬盘识别成IDE类型的,
用 hdparm开了DMA, 32bit, R/W multiple sector transfer=16,
但速度反而下降了,变成了大概 29 MB/sec左右。

从 sudo hdparm -I /dev/sda 的输出结果中可以看到 DMA支持到 *udma5 ,
在我重新编译内核后,sudo hdparm -I /dev/hda 的输出结果中 DMA变成了只支持到 *udma2.

Any suggestions ?

硬盘参数如下:

sudo hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
Model Number: HTS541080G9AT00
Serial Number: MPB4LAXNG0SHRM
Firmware Revision: MB4OA60A
Standards:
Used: ATA/ATAPI-6 T13 1410D revision 3a
Supported: 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: 156301488
LBA48 user addressable sectors: 156301488
device size with M = 1024*1024: 76319 MBytes
device size with M = 1000*1000: 80026 MBytes (80 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
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
52min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct
回复

回到 “常用硬件支持”