|
|
发表于 2005-6-24 11:29:11
|
显示全部楼层
Post by d00m3d
Suggest to add the -a option, e.g. -a1024, this increase the read ahead buffer and enhance the overall performance.
#/sbin/hdparm -c3 -u1 -d1 -X69 -a1024 /dev/hda
Do a benchmark with /sbin/hdparm -tT /dev/hda to learn the differences.
我按着你说的做了一下,但是硬盘的速度还是慢,不知道是那里的问题?
debian:~# /sbin/hdparm -c3 -u1 -d1 -X69 -a1024 /dev/hda
/dev/hda:
setting fs readahead to 1024
setting 32-bit IO_support flag to 3
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
setting xfermode to 69 (UltraDMA mode5)
IO_support = 3 (32-bit w/sync)
unmaskirq = 1 (on)
using_dma = 1 (on)
readahead = 1024 (on)
debian:~# hdparm -t /devhda
/devhda: No such file or directory
debian:~# hdparm -t /dev/hda
/dev/hda:
Timing buffered disk reads: 90 MB in 3.05 seconds = 29.53 MB/sec
速度只有没秒钟 30M。!!
debian:~# hdparm -i /dev/hda
/dev/hda:
Model=Maxtor 6Y080P0, FwRev=YAR41BW0, SerialNo=Y269MF7C
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=160084415
IORDY=on/off, tPIO={min:120,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 udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null):
* signifies the current active mode |
|