How to create a CPU spike with a bash command

I want to create a near 100% load on a Linux machine. It’s quad core system and I want all cores going full speed. Ideally, the CPU load would last a designated amount of time and then stop. I’m hoping there’s some trick in bash. I’m thinking some sort of infinite loop.

23 Answers
23

Leave a Comment