Sign up ×
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

4 Answers 4

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

I've been developing stress-ng, which provides a wide range of stress mechanisms. See

share|improve this answer
Thanks for the effort. Can you expand this answer a bit? Perhaps by adding a usage of your tool along with some example output? Answers on SE sites generally need to be more than just a link. – slm Feb 16 at 12:56
stress-ng is now available in Debian 8 and Ubuntu 14.04. It tries to be backwardly compatible with stress but is a clean re-write. stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces. Stress-ng features: over 80 different stress tests over 50 CPU specific stress tests that exercise floating point, integer, bit manipulation and control flow over 20 virtual memory stress tests – ColinKing May 5 at 13:03
can you please put that in your answer? Link only answers are typically discouraged and are often deleted if no details are incorporated into them. – slm May 5 at 13:08

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.