← All notes

Stress CPU/Cache to a % Linux

stress-ng --cpu 0 --cpu-method fft --cpu-load 80 --cache 4 --timeout 0s

Will stress the CPU, on my experiments, to 90% (due to the cache workers).

This is mainly intended to measure attack resistance to % CPU utilization levels of a system, with cache trashing.