Skip to main content

CPU Performance Benchmark

Perform a targeted stress test on the client CPUs to reach and maintain a specific load threshold.

1. Installation

Ensure stress-ng is installed on the target client node:

sudo apt update && sudo apt install stress-ng -y

2. Execute CPU Stress (60%)

Run the stressor to utilize 60% of the available CPU capacity for 120 seconds:

sudo stress-ng --cpu 0 --cpu-load 60 --timeout 120s

stress-ng cpu

info

The --cpu 0 flag automatically detects and utilizes all available CPU cores, while --cpu-load 60 throttles the workers to maintain the 60% target.