Difference between revisions of "Generate high load and cpu usage for testing only"
Jump to navigation
Jump to search
(No difference)
|
Latest revision as of 15:35, 15 September 2017
vi foo.c
#include <stdio.h> void main() { while (1){ fork(); } return 0; }
gcc foo.c -o foo ./foo
be carefull to start the script as root, it will use as much cputime and memory as it can...
use it for testing only