Thursday, May 18, 2006

load cpu & memory shell script c program for quick and dirty benchmark

This script is a simple empty while loop which will load or increase the usage of your cpu.
a good way to test your cpu check for different monitoring tool

while :
> do :
> done

/home/sanmisra>more memory.c
main ()
{
while ( 1 ) {
malloc (10240) ;
}
}

1 comment:

Stephane said...

yeah, the DoS of the poor ;-)