In order to test our monitoring infrastructure, I'd like to generate enough IOs to trigger an alert. As the alert is based on IOWaits, I should find a way to 'overload' the IOs.
I found an article about that using dd
:
dd if=/dev/zero of=/root/testfile bs=512 count=1000 oflag=direct
But I am not quite sure that:
- it is safe
- it will actually generate enough IOs to get IOWaits
Any pointer will be greatly appreciated.