Hdparm hard disk parameter display and setting

Source: Internet
Author: User
Hdparm hard disk parameter display and settings-general Linux technology-Linux technology and application information, the following is a detailed description. Hdparm hard disk parameter display and setting
Jul
28
Hdparm hard disk parameter display and setting
Filed under: Linux/Unix |

. Display hard disk settings
[Root @ cnscn ~] # Hdparm/dev/sda
/Dev/sda:
IO_support = 0 (default 16-bit)
Readonly = 0 (off)
Readahead = 256 (on)
Geometry = 19929 [number of cylinders]/255 [number of magnetic heads]/63 [number of sectors], sectors = 320173056 [total number of sectors], start = 0 [number of starting sectors]

. Displays the number of hard disk cylinders, heads, and sectors.
[Root @ cnscn ~] # Hdparm-g/dev/sda
/Dev/sda:
Geometry = 19929 [number of cylinders]/255 [number of magnetic heads]/63 [number of sectors], sectors = 320173056 [total number of sectors], start = 0 [number of starting sectors]

. Evaluate the Read efficiency of the hard disk
[Root @ cnscn ~] # Hdparm-t/dev/sda
/Dev/sda:
Timing buffered disk reads: 166 MB in 3.03 seconds = 54.85 MB/sec
[Root @ cnscn ~] # Hdparm-t/dev/sda
/Dev/sda:
Timing buffered disk reads: 160 MB in 3.01 seconds = 53.11 MB/sec
[Root @ cnscn ~] # Hdparm-t/dev/sda
/Dev/sda:
Timing buffered disk reads: 166 MB in 3.00 seconds = 55.31 MB/sec

. Evaluate the Read efficiency of the hard disk cache
[Root @ cnscn ~] # Hdparm-T/dev/sda
/Dev/sda:
Timing cached reads: 3784 MB in 2.00 seconds = 1894.60 MB/sec
[Root @ cnscn ~] # Hdparm-T/dev/sda
/Dev/sda:
Timing cached reads: 3816 MB in 2.00 seconds = 1909.06 MB/sec
[Root @ cnscn ~] # Hdparm-T/dev/sda
/Dev/sda:
Timing cached reads: 3728 MB in 2.00 seconds = 1866.29 MB/sec

. Check the power management mode of the IDE hard disk.
[Root @ cnscn ~] # Hdparm-C/dev/sda
/Dev/sda:
Drive state is: standby [power-saving mode]
Display the specified hardware specification of the IDE hard disk.
[Root @ cnscn ~] # Hdparm-I/dev/sda

. Directly checks the hardware specification of the hard disk.
[Root @ cnscn ~] # Hdparm-I/dev/sda
/Dev/sda:
ATA device, with non-removable media
Model Number: Maxtor 6B160M0
Serial Number: b404pt.pdf
Firmware Revision: BANC1BM0
Standards:
Supported: 7 6 5 4
Likely used: 7
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: 320173056
Device size with M = 1024*1024: 156334 MBytes
Device size with M = 1000*1000: 163928 MBytes (163 GB)
Capabilities:
LBA, IORDY (can be disabled)
Queue depth: 32
Standby timer values: spec 'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: unknown setting (0 × 0000)
Recommended acoustic management value: 192, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 * udma6
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:
* NOP cmd
* Read buffer cmd
* Write buffer cmd
* Host Protected Area feature set
* Look-ahead
* Write cache
* Power Management feature set
Security Mode feature set
* SMART feature set
* Flush cache ext command
* Mandatory flush cache command
* Device Configuration Overlay feature set
* 48-bit Address feature set
* Automatic Acoustic Management feature set
Set max security extension
Advanced Power Management feature set
* Download microcode cmd
* General Purpose Logging feature set
* SMART self-test
* SMART error logging
Security:
Master password revision code = 65534
Supported
Not enabled
Not locked
Not frozen
Not expired: security count
Not supported: enhanced erase
Checksum: correct

. Detects and sets the 32-bit I/O mode of the IDE hard disk.
Detection
[Root @ cnscn ~] # Hdparm-c/dev/sda
/Dev/sda:
IO_support = 0 (default 16-bit) [default 16-bit I/O]
Set
[Root @ cnscn ~] # Hdparm-c 1/dev/sda

. Detect and set the DMA mode of the IDE Hard Disk
[Root @ cnscn ~] # Hdparm-d/dev/sda
/Dev/sda:
...
[Root @ cnscn ~] # Hdparm-d 1/dev/sda

. Checks the number of slice pre-stored in the cache when reading files.
[Root @ cnscn ~] # Hdparm-a/dev/sda
/Dev/sda:
Readahead = 256 (on)

. Query and set the number of access sectors for multiple hard disk sectors to improve hard disk access efficiency
[Root @ cnscn ~] # Hdparm-m/dev/sda
[Root @ cnscn ~] # The hdparm-m parameter value is an integer such as 8/dev/sda.
. Write the data in the buffer to the hard disk and clear the data in the buffer.
[Root @ cnscn ~] # Hdparm-f/dev/sda
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.