Linux tools - Hdparm - (Disk management and bandwidth testing).

| F.A.Q.

HDPARM - Disk management and bandwidth testing

MANAGEMENT

Power management (APM - Advanced Power Management)

Head parking frequency setting (1-255)

hdparm -B 254 /dev/sdX

Explanation:

1 - Highest level of energy management

254 - Highest I/O performance

255 - Highest I/O performance

Function useful when:

#smartctl -a /dev/sdX | grep Load_Cycle_Count

Shows a score above 200,000 or constantly hear a parking disk head

Volume management (AAM - Automatic Acoustic Management).

Disk volume settings ( (AAM) setting)[0 - 254].

hdparm -M 254 /dev/sda

Explanation:

0 - disabled (off)

128 - Most quiet and slow(quiet)

254 - Fastest and loudest (fast)

THROUGHPUT TESTS

hdparm [options] device

Quick interface throughput test (without performing actual disk reads)

# hdparm -T /dev/sda
/dev/sda:
Timing cached reads: 2548 MB in 2.00 seconds = 1273.66 MB/sec

A quick sequential test of disk data reading:

# hdparm -t /dev/sda
/dev/sda:
Timing buffered disk reads: 300 MB in 3.02 seconds = 99.21 MB/sec

Related pages:

  1. Narzędzia Linux - dd (Tworzenie obrazu ISO, Test przepustowości)
  2. Smartmontools - Narzędzie do analizy danych SMART dysków HDD, SSD, NVMe
  3. How to Disable CPU Cores in Linux (How to limit power consumption server)
  4.