Power to the People of Iran

..and welcome to eeeGadgets! This blog is dedicated to everything associated with the wide (and interesting) field of mobile computing. The main focus is on presenting all the various hardware modifications I made to my eeePC, but I will also give short reviews of other interesting Mobile Internet Devices I come across. Further I want to share some tips and tricks I found out to be helpful in getting the most performance out of Ubuntu linux...
On the right side under "LABELS" you can navigate between various assorted article categories. Also, on the very bottom of the site you will find some useful weblinks, as well as a small broadband connection speed test (which can be very useful sometimes).
If you want to, you can subscribe to my RSS news feed too, to be always up to date about my latest articles - simply click on "subscribe now!" in the little box on the right side. Alternatively, you can subscribe to my simple email newsletter by clicking here.
For questions, feedback, suggestions, criticism and everything else, don't hesitate to contact me:

....have fun reading!

If you like my site and want to support me , you can always donate to my personal "coffee funds" using the PayPal "donate" button further down on the right! :)

Wednesday, March 18, 2009

HowTo: Measuring hard disk performance with linux and 'hdparm'

Measuring sequential disk performance with linux is easy - most distros (like ubuntu) come with a tool called hdparm, that is mainly used for tuning and optimizing hard disk parameters, but luckily it also includes simple benchmark functionality - for example the following command

sudo hdparm -t /dev/sda

gives me the following output:

Timing buffered disk reads: 176 MB in 3.01 seconds = 58.55 MB/sec

Of course you need to substitute /dev/sda with the name of your raw disk device (for example, it might be /dev/hda for non-SATA disks). Its impossible to get higher transfer rates that that from your disk. Hdparm reads at the very start of the disk for these tests (which is the fastest area of the whole harddisk) and using optimal access pattern.

If you'd like to test your harddisk's cached performance too, you can do so by using "hdparm -tT" (note additional T) to get an output similar to the following:


Timing cached reads: 1198 MB in 2.00 seconds = 598.98 MB/sec
Timing buffered disk reads: 170 MB in 3.00 seconds = 56.65 MB/sec

Of course all of the above tests need to be conducted at least 2-3 times and the results averaged to get some meaningful results..

BTW to check whether your system supports SATA-1 or -2, the following switch is needed:

hdparm -I /dev/sda | grep SATA

which gives as output either one or both of the following lines:

* SATA-I signaling speed (1.5Gb/s)

* SATA-II signaling speed (3.0Gb/s)

Have fun testing.

1 comment:

sshlyk said...

thank you, exactly what I was looking for

Broadband Connection Test:

Just click on "Speedtest starten" to evaluate your actual downlink in MBit/sec (takes 10 seconds approx.)

(c) dsl-speed-messung.de - DSL Speed Test