Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.1. Mac Tip.You are here: 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



I usually write a blog post about once a week. The latest post can be viewed here: But is it Science?: Ask yourself this: is it really science? (posted 2024-10-04 at 12:30:35).
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_connect(): Error while reading greeting packet. PID=27684 in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 60
Could not connect to MySQL: