hdparm is a command-line tool on Unix/Linux platforms used to adjust or inspect hard drive configuration parameters.
Questions tagged [hdparm]
39 questions
2
votes
2 answers
Linux Disk tuning help
I have a Software RAID1 disk that is randomly experiencing very slow read times.
hdparm -t /dev/md0
/dev/md0:
Timing buffered disk reads: 2 MB in 12.43 seconds = 164.80 kB/sec
It appears to be one disk in the RAID set that is consistently…
![](../../users/profiles/59742.webp)
John P
- 1,659
- 6
- 37
- 56
2
votes
2 answers
Benchmarking hard disks on Mac OS X SL
On Linux I would usually use "hdparm -tT device" when I want a quick idea of how an hard drive is performing compared to another; having switched to Mac OS X a few months back I have yet to find something similar and as easy to use.
I have read that…
![](../../users/profiles/8645.webp)
Vito Botta
- 317
- 1
- 7
- 14
2
votes
2 answers
How can I test hd performance on an OpenVZ container?
CentOS 5.x | VPS | OpenVZ
I'm trying out a vps that uses OpenVZ and am not sure what command to type to measure disk read performance. I thought hdparm would work but I get the following:
[root@echo dev]# hdparm -t /dev/simfs
/dev/simfs: Permission…
![](../../users/profiles/21875.webp)
Mike B
- 11,570
- 42
- 106
- 165
2
votes
1 answer
HDD spins up spuriously for no reason
I have four HDDs in my NAS.
Three (Western Digital, all the same model) are put in standby mode (spin down) by hd-idle and they stay in standby until I use them. The reason I use hd-idle and not the internal power saving mechanism via hdparm (-S XX…
![](../../users/profiles/477373.webp)
Lazarus535
- 215
- 1
- 4
1
vote
0 answers
raid not spinning down - mdadm issuing syncs?
I have an issue with an archival server that is running a RAID 5. The server is being accessed only every couple of days, so I want these disks to spin down when there is no activity for a while.
Disclaimer: I understand that spinning down disks is…
![](../../users/profiles/511579.webp)
Philipp Unterbrunner
- 11
- 1
1
vote
1 answer
"UNMAP not supported" error on a device that supports UNMAP
I was playing with trim/unmap commands on a Samsung SSD (MZ7WD240 model).
To check the unmap support on this device i ran the following command:
hdparm -I /dev/sda | grep TRIM
And as expected the output shows that my device /dev/sda supports…
![](../../users/profiles/405388.webp)
SamTh3D3v
- 253
- 2
- 10
1
vote
2 answers
Ubuntu seems to ignore spindown_time in config /etc/hdparm.conf
I have /etc/hdparm.conf configured to power down the external USB HDD, but it actually never spins down. When I manually turn it off (hdparm -Y or set its spindown hdparm -S 36) - everything works as expected.
It seems like my Ubuntu ignores…
![](../../users/profiles/12097.webp)
kolypto
- 10,738
- 12
- 51
- 66
1
vote
2 answers
Disk Cached IO very slow
I have two boxes with exactly same hardware configuration. Both having RAID0 (created using mdadm) over SATA disks. But I am getting different cached reads while testing using hdparm command.
$ hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: …
![](../../users/profiles/95256.webp)
pradeepchhetri
- 2,518
- 6
- 33
- 45
1
vote
0 answers
Differences between hdparm --read-sector and dd with "Current Pending Sectors"
This was originally an "answer" to How to use hdparm to fix a pending sector?
I'd been getting SMART notifications for the same "Current Pending Sector" for days.
The dd solutions around weren't resolving anything (they'd appear to zero data and…
![](../../users/profiles/129952.webp)
bsb
- 111
- 1
- 4
1
vote
2 answers
Is wiper.sh working?
I'm setting up a server running Ubuntu Precise, and I'm trying to verify if SSD TRIM is working.
fstrim is failing:
~ sudo fstrim -v /
fstrim: /: FITRIM ioctl failed: Operation not supported
So I tried wiper.sh in hdparm:
wiper-3.5 sudo…
![](../../users/profiles/115819.webp)
Aleksander Blomskøld
- 113
- 6
1
vote
1 answer
Is it possible to get hdparm to report the current level of performance degradation on my SSD?
I work on a product that is a headless Debian Linux system with removable Intel X-25M solid state drives. Recently we noticed that the read/write performance of these drives degrades over time, and sure enough the culprit was SSD block problems, as…
![](../../users/profiles/19340.webp)
Jeremy Friesner
- 1,311
- 1
- 14
- 25
1
vote
2 answers
Measuring disk performance for random seeks?
I'm setting up a server that involves lots of database writing during regular updates, and I have wildly varying results between different machines. I'm trying to find out what I can expect from different machines (and hosting providers) without…
![](../../users/profiles/42172.webp)
gravitystorm
- 111
- 3
1
vote
2 answers
Hdparm slow server
My web site server is very slow and I contacted my hosting company. This company ask me to execute this command line:
hdparm -tT /dev/sda
The result is here:
/dev/sda:
Timing cached reads: 1112 MB in 2.00 seconds = 555.55 MB/sec
Timing buffered…
![](../../users/profiles/27094.webp)
Kiva
- 155
- 2
- 8
1
vote
1 answer
Spin up all raid drives at the same time
Here is the configuration:
4 HDDs in a RAID-5 array (mdadm)
hdparm spin_down_time set for all disks
Debian jessie 8.11
When the drives are in standby mode and the RAID array is requested, they wake up "sequentially", one after another.
It makes…
![](../../users/profiles/767530.webp)
Tigger
- 111
- 2
0
votes
1 answer
Spin down of Icy Box Raid Enclosure not working
I am running Ubuntu server 18.04 and I am using an ICY BOX IB-RD2253-U31 enclosure with two WD Black disks (no NAS disks) in RAID 1 mode (mirror).
The external enclosure is connected via USB to the Linux server. The disks are two 1TB Western Digital…
![](../../users/profiles/539098.webp)
JJ Abrams
- 101
- 1