Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.4. Mac Tip.Location: tip95 tips mac owen2 
Tip

Discuss   Up to OJB's Mac Tips List

Terminal: Change Priority

Some processes (or programs) might need to run for long periods on your machine while you are doing other work without making other programs slow. For example you might be running a distributed network data processing program like SETI@Home. Alternatively, there may be programs which need more of a share of the CPU to make sure they don't "skip", for example CD writing software like Toast or music software like Music or iTunes. Changing the process priority can help with this.

First you need to find out the process ID. To do this use the "ps" or "top" command. See other tips here for information about these. Use "ps -axc" and find the process ID of the required process (its the number in the first column). Now use the "renice" command to change the process priority, type "renice p x" where p is the new priority and x is the number of the process to change.

The priority can be a number between -20 and +20 where -20 is the highest (it goes faster) and +20 is lowest (only runs if other programs don't need to). Standard users can only make programs run slower but you can use "sudo" to give you privileges to make things faster. For example "sudo renice -10 665" will change the privileges of process 665 to -10 (assuming it started at the default, 0, it will go faster). To check the current nice values of running processes use the "ps -axcl" command. The column titled "NICE" (or just "NI" is there is less space available) shows the nice value.

Update: Modern systems with multiple fast cores are unlikely to be affected significantly by one or more processes using too much CPU time. If a process is dong this it might not be running correctly so don't just try to hide the problem using nice, which probably won't help much in that situation anyway!

Related Tips

Terminal Example: Listing Files
Terminal Example: Shell Script
Terminal Tips: Deleting Files
Terminal: Changing Privileges
Terminal: Fixing a Hang
Terminal: Listing Directory
Terminal: Manual and Help
Terminal: Remote Secure Login
Terminal: Terminate a Process
Terminal: Top Processes





I usually write a blog post about once a week. The latest post can be viewed here: Think for Yourself: In the end, everything is just an opinion. Be skeptical, and think for yourself! (posted 2026-04-25 at 21:12:02). Or go to the Home Page of My Blog to choose a post to view.

I do podcasts too! You can listen to my latest podcast, here: OJB's Podcast 2026-04-14 How Far is that Star?: How would we really know how big the universe is? Or subscribe to my podcast RSS feed, on my RSS Feeds page.

If you're not sure what to view from the thousands of pages on my site, here are some suggestions: My Latest Airshow Report (photos and movies from Warbirds Over Wanaka, 2026), My Favourite Wines and Beers (tasting notes for some of my favourites), An Interesting Astronomical Observation (learn a bit about astronomy from these observing notes), See Some Photos (A short rail journey through the Taieri Gorge), Read Some Mac Tips (Learn about how to use your Mac, and fix some problems).


Latest Site News and Notifications (Desktop): You are currently viewing OJB's web site, version 2.4 which has some major changes, and possibly errors! Please report any problems to ojb@mac.com.

 Site ©2026 by OJBRSS FeedMicrosoft Free ZoneMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log07 Jun 2024. Hits: 1,001,193,592
Description: Mac TipLogged: nothingLoad Timer: 64ms