hdparm linux tool

GEEKS !!

You have installed / partitioned and used your HDD while your Red Hat Linux Training.

Check the speed of your HDD by using hdparm.

You can use -t switch and -T switch for this job.

hdparm -tT /dev/sda

As per the man pages of hdparm.

-T – Perform timings of cache reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the processor, cache, and memory of the system under test.

-t – Perform timings of device reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading through the buffer cache to the disk without any prior caching of data. This measurement is an indication of how fast the drive can sustain sequential data reads under Linux, without any filesystem overhead.

Here is a small illustration from my machine.

Checking speed of HDD using hdparm

Checking speed of HDD using hdparm

Advertisements