Daniel Hoelbling-Inzko talks about programming

Generating synthetic CPU load on Linux

Posted by Daniel Hölbling on February 15, 2017

While working on some alerting and metric collection about our infrastructure at Bitmovin I wanted to test out if the alerts I configured are actually triggered when a server experiences high CPU load.

I came across this beautiful Stackoverflow Answer that did exactly what I needed:

seq 3 | xargs -P0 -n1 md5sum /dev/zero

This command will saturate 3 cores with 100% user load until you cancel the command with CRTL+C.

Filed under linux, devops, server
comments powered by Disqus

My Photography business


dynamic css for .NET