iriya_ufo’s blog

Curiosity was simply the first derivative of knowledge.

Ubuntu で HDD ベンチマーク (hdparm)

現在使用しているPC ThinkpadX61 + Ubuntu 7.10 で HDD ベンチマークとってみました.

コマンドは hdparm です.hdparm はオプションによっては HDD に重大な損害を与える可能性もあるので注意して使いましょう.

  • まずドライブの情報を参照する.
iriya@thinkpad> sudo hdparm -I /dev/sda                                                         [~]

/dev/sda:

ATA device, with non-removable media
        Model Number:       HITACHI HTS541616J9SA00                 
        Serial Number:      SB2441GJHLNU4E
        Firmware Revision:  SB4IC7UP
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:  268435455
        LBA48  user addressable sectors:  312581808
        device size with M = 1024*1024:      152627 MBytes
        device size with M = 1000*1000:      160041 MBytes (160 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        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=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
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    IDLE_IMMEDIATE with UNLOAD
           *    SATA-I signaling speed (1.5Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
                Non-Zero buffer offsets in DMA Setup FIS
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
                In-order data delivery
           *    Software settings preservation
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
                frozen
        not     expired: security count
        not     supported: enhanced erase
        82min for SECURITY ERASE UNIT. 
Checksum: correct
  • 次に読み出し速度を測定してみる.
iriya@thinkpad> sudo hdparm -t /dev/sda                                                         [~]

/dev/sda:
 Timing buffered disk reads:  136 MB in  3.03 seconds =  44.88 MB/sec

あれ?ちょっと遅い?
まぁいいや.(ぉ

参考サイト
http://ubuntuforums.org/showthread.php?t=16360