Simulating Load on a File-System

<img src="/img/2012/11/load.jpg" alt="load"> Sometimes you want an easy way to simulate load on a file-system that you are trying to test. Here’s a quick and easy way. Suppose your mount point you want to perform this IO is “/myspecialmount”. (Assuming you have plenty of space to test) Then the easiest way to load some IO is through the following bash-script: [sourcecode language=“bash”] #!/bin/bash while true do echo “=== Starting clean-up ====” rm -fr /myspecialmount/usr echo “=== Starting load ====” rsync -avp /usr /myspecialmount done [/sourcecode]