stress-ng: Simulate specific cpu percentages
I designed stress-ng so that one can specify 0 for the number of stressor processes to match the number of on-line CPUs, so to load each cpu at say 40%, use
stress-ng -c 0 -l 40
I should have used -l option
Looks like -c 1 distribute the load between all cores. Not exactly 80/4 per core, I guess because the host already runing some stuff.
stress-ng -c 1 -l 80
and -c 4 simulate the load on each core
stress-ng -c 4 -l 80