Questions tagged [hdparm]

hdparm is a command-line tool on Unix/Linux platforms used to adjust or inspect hard drive configuration parameters.

37 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…
John P
  • 1,679
  • 6
  • 38
  • 59
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…
Vito Botta
  • 327
  • 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…
Mike B
  • 11,871
  • 42
  • 107
  • 168
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…
Lazarus535
  • 235
  • 2
  • 6
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…
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…
SamTh3D3v
  • 273
  • 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…
kolypto
  • 11,058
  • 12
  • 54
  • 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: …
pradeepchhetri
  • 2,698
  • 6
  • 37
  • 47
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…
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…
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…
Jeremy Friesner
  • 1,323
  • 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…
gravitystorm
  • 111
  • 3
1
vote
1 answer

Why does `hdparm -t` take so long to produce accurate results on my EC2 instance?

I'm profiling a data-processing program that I wrote and I want to understand the theoretical throughput of the machine I'm on. Specifically, I want to measure what disk read speed my g4dn EC2 instance is providing my application. This particular…
cade
  • 121
  • 5
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…
Kiva
  • 155
  • 2
  • 8
1
vote
1 answer

"hdparm -s 1" on USB disk -> bricked? - USB drive is on power on in standby mode which cannot be reverted with hdparm

I have a disk which was apparently put into PUIS mode with hdparm. As the disk does not spin up on power on automatically, I think I need to send it directly to the USB device (which is not even recognized as the device doesnt turn on) I think this…
Questi
  • 13
  • 5