Monday, September 21, 2015

Force load on CPU - Linux

Today I needed to create a spike on CPU in my CentOS 7 Server.

I logged in using Putty and wrote the below command

for i in 1 2 3 4 5 6 7 8; do while : ; do : ; done & done

Then all of my 8 Cores became 100%

No comments:

Post a Comment