encyclopegia.org

Hdparm

hdparm is a command line program for Linux to set and view ATA hard disk drive hardware parameters and test performance.[src] It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings.[src] GParted and Parted Magic both include hdparm.[src] Changing hardware parameters from suboptimal conservative defaults to their optimal settings can improve performance greatly.[src] For example, turning on DMA can, in some instances, double or triple data throughput.[src] There is, however, no reliable method for determining the optimal settings for a given controller-drive combination, except careful trial and error.[src] Depending on the given parameters, hdparm can cause computer crashes or render the data on the disk inaccessible.[src]

hdparm is a command line program for Linux to set and view ATA hard disk drive hardware parameters and test performance.[src] It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings.[src] GParted and Parted Magic both include hdparm.[src] Changing hardware parameters from suboptimal conservative defaults to their optimal settings can improve performance greatly.[src] For example, turning on DMA can, in some instances, double or triple data throughput.[src] There is, however, no reliable method for determining the optimal settings for a given controller-drive combination, except careful trial and error.[src] Depending on the given parameters, hdparm can cause computer crashes or render the data on the disk inaccessible.[src] Enable energy saving spindown after inactivity (24*5=120 seconds): sudo hdparm -S 24 /dev/sda To retain hdparm settings after a software reset, run: sudo hdparm -K 1 /dev/sda Enable read-ahead: sudo hdparm -A 1 /dev/sda Set a volatile HPA of 10000000 sectors on the first hard drive (HPA will be lost after a power cycle): hdparm -N 10000000 /dev/sda Set a permanent HPA of 10000000 sectors on the first hard drive (HPA will still stay after power cycles): hdparm -N p10000000 /dev/sda Change its acoustic management, at the cost of read/write performance (some hard drives and SSDs might ignore this setting though.): sudo hdparm -M 128 /dev/sda If the disk synchronisation intervals are too short, then even small amounts of data will be written to disk which can have severe consequences for its lifespan.[src] The better way would be to collect small data into bigger chunks and wait until the chunk is big enough to be written to disk.[src] Current web browsers like Chrome write regularly small chunks when browsing in order not to lose any important data when the application crashes.[src] However, this lets the disk spin very often as the drive repeatedly needs to unleash and then park its heads.[src] The generated noises can be thus regarded as distracting by the user.[src] To circumvent this issue, the user can switch the drive to the lowest degree of power management (next value, 255, turns power management off): hdparm -B 254 /dev/sda Additionally, changing the value of /proc/sys/vm/dirty_expire_centisecs can have an effect on the performance.[src] It sets the flush interval when dirty pages are written to disk.[src] These commands are only effective in the long-run if the user makes the changes persistent.[src] However, the settings the user can set via hdparm are reverted each time the system is rebooted.[src] Therefore, it might be wise to restore the personal settings upon boot.[src] An appropriate place that exists in most Linux distributions is the /etc/rc.local script.[src] ==See also== ATATool for Windows ==References== ==External links== man page[src]

26 sentences · 26 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Hdparm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hdparm. Accessed 29 November 2026.

Chicago

"Hdparm." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/hdparm.

APA

encyclopegia.org. (2026). Hdparm. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/hdparm

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1341103092 · 0.5 · snapshot enwiki-001341103092

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.