What does it do ?

If you have ever dreamed of being able to tell your friends : "Oh, my system is so overloaded .... and showing them something like :
$ w 1:58pm up 2:39, 5 users, load average: 49.83, 31.08, 14.50

This program is for you.

(Of course, you need to find friends who will understand the above, and this might be the most difficult part of the trick)

How does it work ?

The funny part is that your system will not even be so loaded. The program forks several times (10, by default), set itself to the lowest priority, then goes in an infinite loop. Each of those forked process will increase the load by one, so, by running loadjump 5 times, you will get a load of 50.


Here is loadjump.c. This piece of software is in public domain, so you can do whatever your want with it.

To compile, run gcc -o loadjump loadjump.c.

How do I stop it ?

If you started it, you should know how to stop it, don't you ?!

Something like $ ps |grep loadjump |grep -v grep |awk '{ print $1 }' |xargs kill should help, maybe.