
September 20, 2007
Sean "Obsidian" Potter
Colin "Rhettigan" Dean
ObsidianProfile
Forums
1 2 3 4
This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

# hdparm -tT /dev/sdaWhere -t gives us device read timings, and -T gives us cache read timings. Furthermore, -t deals with sequential disk performance. This causes a reading of the very start of a disk, which is usually faster than other parts on spinning harddrives. This is a little different for solid state storage, but it generally still gives you a good idea of the device's top speed. -T, on the other hand, gives you the speed of the hard drive's cache without any hard drive activity. This is somewhat less important in most cases, but still a helpful benchmark none the less. Let's see how a single drive performs.
The buffered reads aren't too shabby at all, just a tad shy of the maximum 28MB/sec speed the drive is advertised with. For reference, my laptop's hard drive provides the following:
/dev/sda
Timing Cached Reads: 1777.98MB/sec
Timing Buffered Reads: 23.38MB/sec
You can run the benchmark a few times to get a good idea of what the average speeds are. Unfortunately, transfer speeds aren't all that matter in this day and age. We imagine that SSD's may end up in a lot of servers, as well. In a server environment, hard drive access times are very important. Companies have to get information to the guest as soon as possible, and part of that information transfer relies on how fast the hard drive can locate the requested data.
/dev/hda
Timing Cached Reads: 1829.20MB/sec
Timing Buffered Reads: 30.11MB/sec
# time dd if=/dev/zero of=/mnt/disk/test bs=1024 count=1000000This is where if is the input file, of is the output file, bs is the block size, and count is the number of times to do it. We're writing approximately 1GB of data to the drive, which left us with a 14 MB/sec write speed. Not too shabby at all. Compare this to the 11 MB/sec write speed of my laptop's hard drive. Impressive, right?