macfidelity

|

rethinking the think-different thing

mac | How to stress-test your CPU in Mac OS X

May 10th, 2009 at 0:10

20090510_mac_cpu_stress_01

Sometimes people want or even need to produce some CPU-usage without big effort i.e. for testing issues.

The following article describes an easy way to realize that using the Terminal in Mac OS X.

System

Hardware

20090510_mac_cpu_stress_02

20090510_mac_cpu_stress_03

Software

  • CPUPalette.app to display CPU usage
  • yes command to generate some stress

CPUPalette.app is not installed on Mac OS X by default – while it is part of the free Apple Developer Tool-Set. If you are not willing to install CPUPalette – consider using Activity Monitor.app which is installed in

/Applications/Utilities/Activity Monitor.app

CPU Graphs

Idle

Which means – besides the basic processes i have Firefox, iTunes, RSS-Reader, Thunderbird runnig as i am writing while testing ;)

20090510_mac_cpu_stress_04

1 CPU Core

Now – lets start.

  • Open Terminal.app
  • Enter: yes > /dev/null
  • Press Enter

20090510_mac_cpu_stress_05

Lets check the CPU

20090510_mac_cpu_stress_06

2 CPU Cores

Now open a new Terminal window and do the re-do the above

20090510_mac_cpu_stress_05

Lets check the CPU

20090510_mac_cpu_stress_07

3 CPU Cores

Now open a new Terminal window and do the re-do the above

20090510_mac_cpu_stress_05

Lets check the CPU

20090510_mac_cpu_stress_08

4 CPU Cores

Now open a new Terminal window and do the re-do the above

20090510_mac_cpu_stress_05

Lets check the CPU

20090510_mac_cpu_stress_09

Lets take a look into Activity Monitor.app

20090510_mac_cpu_stress_10

and

20090510_mac_cpu_stress_11

Conclusion

Using the yes command and redirecting it to the black hole is a very simple but effective method to generate some CPU usage without big effort.

My 3 year old Mac Pro – first generation – easily handled the task – Mac OS X was acting without issues as expected. The temp increased slowly from 33 degree celcius up to 40 at the end.

Tags: , , , , , , ,

6 Responses to “mac | How to stress-test your CPU in Mac OS X”

  1. Mac | mac | How to stress-test your CPU in Mac OS X | Download Free Software Says:

    [...] the original here: mac | Ho&#119&#32&#116o stress-test your CPU in Mac OS X Nessun tag per questo [...]

  2. mac | Finder and the expand-all system stress test | macfidelity Says:

    [...] also noch mit minimal Mehraufwand im Terminal künstlich CPU Verbrauch produzieren – geht doch alles direkt aus der Schaltzentrale [...]

  3. rea Says:

    where is to download that aplication?(procesor)

  4. fidel Says:

    @rea

    Hi – which application are you talking about?

  5. rea Says:

    cpupalette.app where is to download?

  6. fidel Says:

    @rea:
    please read this post – i guess it might answer your question ;)
    http://macfidelity.de/2007/11/07/xcode-cpupaletteapp/

    Best Regards
    fidel

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>