0

How can I analyze my cpu when I run stress on cpu? When I enter the following command for any value of n: (For example 5, 10, 20, 40)

sudo stress --cpu n --timeout 40s

The top command result for cpu usage is 100%. So when I change the n value, what will be change?

Wis Goon
  • 23
  • 4

1 Answers1

0

"n" should be the number of cores (threads) you want to stress. If you have 4 core CPU without hyperthreading a value of 2 should give you about 50% load etc.

useropu1
  • 16
  • 2
  • Oh, ‍‍the N in`spawn N workers spinning on sqrt()`that is written in stress document, means N cpu cores? – Wis Goon Mar 12 '21 at 19:46
  • N is how many threads the stress will run so you can think of it as how many cores will be stressed, sure. – useropu1 Mar 12 '21 at 21:08