Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Looking for an app or tool to invoke CPU usage on my virtual Linux and Unix guests. I found the app "stress" from a post on Stackoverflow, but curious what the Unix/Linux crowd would recommend.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

The goto for Linux is cpuburn (homepage). I would expect that it should work on other UNIX systems as well.

share|improve this answer
TY sir, this gives me something else to compare my data with. –  Tim Jun 28 '12 at 13:17

stress is pretty good. I see no reason to use something else.

share|improve this answer
Stress is just about perfect, I ultimately need an alternative to compare data against. –  Tim Jun 28 '12 at 13:18

I think cpuburn and stress are good, but I also have python script that I use to additional stress.

import multiprocessing
import math

def worker():
    #worker function
    print ('Worker')
    x = 0
    while x < 1000000000000000000:

        p = x*math.pi
        p2 = math.sqrt(x**2 + p**2)

        x += 1

if __name__ == '__main__':
    jobs = []
    for i in range(50):
        p = multiprocessing.Process(target=worker)
share|improve this answer
According to the stress man-page this is pretty much the same what stress does... –  Nils Jun 29 '12 at 19:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.