Linux – How to generate CPU load on Linux server

benchmarklinuxload-testing

I would like to test fake load on the server, I'm looking for some burn-in or benchmark command line utility that would generate CPU load on the system.

I would like to be able to burn-in only CPU (no harddisk load, network and co) and that I would be able to set the period in which the load will run. Meaning I want something that would be able to run: CPU load for 10min on the system.

Any ideas?

Best Answer

You can download and install the "stress" utility... It allows you generate CPU, Memory, Disk and IO load from the command line.

Homepage: http://people.seas.harvard.edu/~apw/stress/

FAQ: http://people.seas.harvard.edu/~apw/stress/FAQ