http://www.linuxconfig.org/how-to-crash-your-linux-system-with-fork-bomb
I was testing Virtual Machines running on KVM and wanted to see what would happen when the VM guest would use up all memory, start swapping and use 100% cpu.
Fork Bomb: :(){ :|:& };: