Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.08 sec)
Artificially increasing load on a linux server

I need to simulate a high CPU and IO load on a server.

With eight consoles open I'm using:

cat /dev/urandom > /tmp/FILE

On a quad core server with little success !

Any ideas ?
Asked by:
JimmyC
945 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: Artificially increasing load on a linux server
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

Not perfect, but try multiple instances of

gzip < /dev/zero > /tmp/FILE

This won't hit IO so much though. dd is better for that, a variation of:

dd if=/dev/zero bs=8192 count=100000 of=/tmp/FILE

Response by:
lgretton
215 points
Execute the following commands 4 times

save the bellow commands under a file name then give execute permission to that file and execute it 4 times in background

the script creates 100000 factorials...

dc << EOF

[la1+dsa*pla1000000>y]sy

0sa1

lyx

quit

EOF


Response by:
jalal
3623 points
Thanks ! I'll maybe (carefully) try both at once !

Response by:
JimmyC
945 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle