Hej
Jeg har lidt problemer med performance på min Western Digital 160GB
disk. Når jeg køre en test at min disk med hdparm giver den:
srv01
# hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1340 MB in 2.00 seconds = 669.54 MB/sec
Timing buffered disk reads: 8 MB in 3.05 seconds = 2.62 MB/sec
Hvilket jo ikke er videre imponerende.
Når jeg kigger på disken giver den en besked om at DMA er slået fra:
srv01
# hdparm /dev/hda
/dev/hda:
multcount = 0 (off)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19457/255/63, sectors = 312581808, start = 0
Men nedenstående påstår at jeg køre udma5, så det burde vel være ok?
srv01
# hdparm -i /dev/hda
/dev/hda:
Model=WDC WD1600JB-00EVA0, FwRev=15.05R15, SerialNo=WD-WCAEK1295507
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
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
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3
ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6
* signifies the current active mode
Hvis jeg forsøger at enable DMA får jeg:
srv01
# hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Min onboard IDE controller er:
srv01
# lspci -v | grep -A 9 IDE
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller
(rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Fujitsu Siemens Computer GmbH D1451 Mainboard
(SCENIC N300, i845GV)
Flags: bus master, medium devsel, latency 0, IRQ 185
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at 2800 [size=16]
Memory at 60100000 (32-bit, non-prefetchable) [size=1K]
dmesg giver følgende output om hda:
srv01
# dmesg |grep hda
Kernel command line: root=/dev/hda4 ro
hda: WDC WD1600JB-00EVA0, ATA DISK drive
hda: max request size: 512KiB
hda: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63
hda: cache flushes supported
hda: hda1 hda2 < hda5 > hda3 hda4
md: bind<hda5>
Er der nogen der har en idé til hvad jeg kan gøre for at forbedre
performance ?
På forhånd tak
Mads
srv01
# uname -r
2.6.17.11