Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Web Site. V 2.1.tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

Make the CPU Work Hard

How to Make the CPU Work Hard

First, why would you want to do this? Maybe for testing, to check the responsiveness of the computer under load. Also to force the fans to run to check that they work, and also to help clear water in case of a water spill!

Use this command: yes > /dev/null &

This creates a background task which will send the word "yes" as often as possible (it is usually used to answer commands with repeated prompts to continue).

Repeat the command to create more threads. Do this as often as necessary to put the required load on the computer.

When your testing is complete, terminate them all with: killall yes



My latest blog post: Learning from Failure: I think there is a place for parties with views I find insane. (posted 2024-11-28). My latest podcast: OJB's Podcast 2024-08-22 Stirring Up Trouble.
 ©2024 by OJBBlogMacs are BestMac Made
T: 10. H: 173,346,468
Features: RSS Feeds Feedback LogMod: 07 Jun 2024