Testing Storage Performance for Video with lmdd
One of the unique things about how Control Group works is that our focus is much more involved than simply putting in a solution for a client and then moving on. We work with our clients to determine how they work, so we can design IT solutions that really fit their needs. Since we have partnerships with a variety of vendors, we work with our clients to arrive at the best solutions for their business. This means we do quite a bit of research and planning before we begin a project — and then a great deal of testing during and after we install new hardware or software.
I do some work on implementing storage systems for our clients, and we’ve found that different applications have different storage requirements. For example a video post production facility — like the facility at WWE — generally needs lots of disk space that is very good at reading and writing large files at high speeds. The storage here needs to provide good streaming throughput, because high quality video files generally have high bit rates, and are being stored or played back from the disk in real-time for ingesting, editing, or playout. If the storage system is not fast enough to read or write the file in real-time, frames will be dropped. This can cause unsatisfactory media files, programs to crash, or audio and video to become out of sync.
Suboptimal read/write performance can become a huge problem. When we put in a new system this is something we need to test. I usually do the test with a tool called lmdd.
lmdd comes from the lmbench tools which are provided by Bitmover for benchmarking systems. lmdd is great for testing streaming bandwidth. In most of our engagements with video, we install a Stornext or Xsan filesystem so we’ll run our tests against this. lmdd will probably work on any filesystem that you can mount on your Mac or Linux computer (Leave a comment if you need a version for Mac OS X, I have one compiled). lmdd lets us verify exactly what the maximum number of megabytes per second we can push through the storage and point us to where we need to make changes to the hardware or software configuration. I use lmdd like this :
lmdd of=/path/to/test_file count=1g
lmdd if=/path/to/test_file
The first tests write performance and the second tests read performance. More information about the syntax is available in the manual page for lmdd. The results of the command from a server I was testing looked like this:
2147.4755 MB in 6.8003 secs, 315.7914 MB/sec
lmdd is great because it’s easy to read. This result shows I could write to the filesystem at 315 megabytes per second. That’s really fast! This is from a test with a server with a lot of RAM and a special filesystem that took advantage of that cache. When I run it on my Macbook, I get a result like this:
18342.6171 MB in 376.7685 secs, 48.6841 MB/sec
So the next time you’re interested in how your storage is performing give lmdd a shot and let me know how it goes. If you’re looking for more information about storage performance testing then stay tuned; I’ll be posting about testing storage with tools that benchmark small reads and writes next.

[...] was having a conversation recently with one of our consultants, David Rocamora, as our team broke down the contents of a start-up’s data center, when I came to the [...]
Trading Data Centers For Clouds. « Control Group Blog
June 22, 2009 at 10:23 am
[...] a comment » Last time I posted about checking disk performance with lmdd. lmdd is great for checking streaming throughput, but what if you have a different kind of [...]
Testing Storage Performance with bonnie++ « Control Group Blog
July 21, 2009 at 11:07 am
[...] a comment » As I’ve mentioned in previous posts about testing storage performance with lmdd and bonnie++, different applications require different characteristics from storage to provide the [...]
Testing Storage Performance with iozone « Control Group Blog
August 3, 2009 at 3:29 pm
Can I get the OSX compiled version of lmdd?
Brian
November 9, 2009 at 5:30 pm
Hey Brian,
Send me an email at dave.rocamora@controlgroup.com and I’ll send you the binary.
Thanks,
Dave
David Rocamora
November 9, 2009 at 6:46 pm
I’d love to have a mac version of this tool. I’m running 10.6.
W. Curtis Preston
December 2, 2009 at 5:36 pm
I must say this is a great article i enjoyed reading it keep the good work
Search Job
January 25, 2010 at 9:10 pm