Script to cause load average to increase
I want to test systems that are doing a lot of things. These things in particular are cpu usage, disk read/write, and network I/O. So I want a script to make the computer do all these things so that the average use of them all increases as much as possible. The CPU usage is easy enough I just have it adding numbers in an endless loop. However what I thought would cause the disk read/write to go up doesn't. I Have the script writing a number from a file, then writing it to a differnt file, then reading from that second file the number, then getting rid of the files and going around and around like this, but that doesn't seem to increase the average disk read/write. Also I'm not sure how to cause a lot of network I/O, should I just flood ping something and have something flood ping it?
Thanks for any help,
Michael
UPDATE: flood pinging the local loopback increases both the upload and download rates, though I'm still not sure how to get the disk activity up.
Last edited by paranoid times; 04-14-2006 at 02:45 PM.
|