[nycbug-talk] Measuring Disk Performance
ike at blackskyresearch.net
Thu Dec 15 09:18:38 EST 2011
On Dec 15, 2011, at 12:54 AM, Henry M wrote:
> Whenever I've bench-marked disks, I've always just used dd and /dev/zero
> Example: I want to see how fast I can write a 1GB file
> $ dd if=/dev/zero of=1GB bs=1024 count=1048576
> 1048576+0 records in
> 1048576+0 records out
> 1073741824 bytes (1.1 GB) copied, 8.72947 s, 123 MB/s
> As long as the system load is consistent, you should get consistent results. You can have fun by running multiple versions at once, to simulate heavier "real-world" load.
Oh- &, a little xargs, and some date(1) and time(1) fun.
> You can change the byte size, or count accordingly. Just be careful what values you give dd, you can easily fill up your disk, or break something nasty with a typo (Yes I've done both )
Yeaaahhhh- this is exactly what I was thinking, but I didn't think to just dd from /dev/zero and build some small tests.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk