hdparm參數

UDMA3(ATA33)
# hdparm -X66 -c1 -d1 -m16 /dev/hda

UDMA4(ATA66)
# hdparm -X68 -c1 -d1 -m16 /dev/hda

UDMA5(ATA100)
# hdparm -X69 -c1 -d1 -m16 /dev/hda

hdparm -tT /dev/hda 測硬碟速度

實際經驗:
shell# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 264 MB in 2.01 seconds = 131.30 MB/sec
Timing buffered disk reads: 52 MB in 3.06 seconds = 16.98 MB/sec
shell# hdparm -d 1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
using_dma = 1 (on)

shell# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 412 MB in 2.02 seconds = 204.40 MB/sec
Timing buffered disk reads: 52 MB in 3.01 seconds = 17.29 MB/sec

s31:/mnt/gentoo# hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda

/dev/hda:
setting fs readahead to 64
setting multcount to 16
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
setting drive read-lookahead to 1 (on)
multcount = 16 (on)
unmaskirq = 1 (on)
using_dma = 1 (on)
readahead = 64 (on)

shell# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 468 MB in 2.01 seconds = 233.22 MB/sec
Timing buffered disk reads: 52 MB in 3.09 seconds = 16.82 MB/sec

作者: Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料