• On The Insider: Leif Garrett Charged w Heroin Possession
advertisement
mySimon mySimon mySimon Outdoor Gear mySimon Swimwear mySimon Home and Garden
November 3, 2006 3:30 AM PST

Increasing performance by quitting remnant or unnecessary system processes

by CNET staff
  • Font size
  • Print
  • 16 comments

More frequently than one might assume, application processes under Mac OS X stick around longer than they're welcome. Even though you've ostensibly quit an application (it no longer appears in the Dock or is turned off via a preference pane), its core or periphery processes may still be lingering and consuming system resources unnecessarily. The benefit in speed brought about by ending these processes can be dramatic, especially on systems with less RAM.

There are other side effects of unnecessary processes that are hidden from plain view. Processes that are using data stored on removable media and mounted disk images can prevent those media from ejecting.

There are two ways to quit processes that are hidden from the Finder: Use the Terminal to list all (or a set of) running processes and their associated PID (process ID) numbers, then use the kill command to end them or launch Activity Monitor (located in Applications/Utilities) and use a graphical interface to identify and end them. The former is powerful and highly configurable, but not without using a multitude of commands to filter and sort and detail the process list. The latter affords easy access to information about memory/processor usage and the files in use (these can include fonts, caches, intra-application executable binaries and more) by any running process.

Here's what the primary Activity Monitor window looks like:

Types of processes that should be considered for elimination:

Processes with names similar to closed applications While there are a few independent application-related processes that should be left running even when an application itself is closed (iChatAgent, if you'd like to be notified of incoming chat requests while the application is closed, for instance), most processes with names similar to applications you thought had been completely quit can be safely killed via Activity Monitor [see box 2 in screenshot].

PowerPC processes on Intel-based Macs Running Rosetta applications chews up large amounts of memory. Whenever Rosetta is active unnecessarily, it's a tremendous waste of resources. In Activity Monitor, click on the Kind tab. [see box 1 in the screenshot] This will split the list into PowerPC and Intel processes.

For instance, we found a PowerPC ATI-related process, the side effect of attempting to install and run PowerPC-only graphics card control software; and an unused FontAgent Pro process running on an in-house MacBook Pro.

diskimages processes Sometimes, the only way to unmount a stubborn disk image is to kill its associated diskimages process. Use the Process Name tab [see box 3 in the screenshot] to sort as such, and look for these processes. Next, click on their name and press the Inspect button. Click on the Open Files and Ports tab, then scroll to the bottom of the text window. You should see the location and name of the associated disk image (e.g. /Users/bwilson/Desktop/X11Update2006.dmg).

Note that you may need to force diskimages processes to quit. The option force quit is shown after the Quit Process button is clicked.

High CPU-usage processes Click on the CPU tab [see box 4 in the screenshot] until its arrow is facing downward. Look at the top of the list for processes that are using extremely high processor resources (sometimes above 100%). These may be hung or otherwise erratic processes not associated with a running application. If they are associated with a currently running application that is hung or not responding properly, quit them (by force if necessary) then re-launch application.

Duplicate processes Click on the Process Name tab [see box 3 in the screenshot] to organize items alphabetically, then look for items with the exact same name then kill all but one.

Note that it can be dangerous to arbitrarily kill processes listed in Activity Monitor. Some are critical system functions, which can cause loss of unsaved data and other problems if forced to quit. Keep an eye on MacFixIt for coverage of processes owned by the system that can be safely quit to work around troubleshooting issues.

Feedback? Late-breakers@macfixit.com.

Resources

  • More from Tutorials
  • Recent posts from MacFixIt
    Apple releases Aperture 3.0
    Manage iCal's automatic e-mail generation for invitations
    CNET TV Apple Byte: Apple faces critics
    Weekly Utilities Update: Net Monitor, MiniUsage, TimeMachineEditor, more...
    Odds and Ends: Essential video codec packs for OS X
    Address Book: Unable to add, view contacts
    Persistent 'Faster Browser Search' overtaking Safari's default search
    Quick tip: Faster Time Machine backups
    Add a Comment (Log in or register) (16 Comments)
    • prev
    • next
    by Kori42 November 3, 2006 6:51 AM PST
    The problem is to know which processes are not necessary!
    -- Activity Monitor has some help in this area. Highlight the suspect process and click on "Inspect".
    -- That will tell you the name of the Parent Process, who owns it, and by clicking on the three tabs, can tell you a lot about the files it is using, memory used, and statistics on its activity.
    -- Also, if the Process Name is all lower case letters, or the Information Panel does not show "Open Files and Ports," it is very likely an Operating System process. Changing those could seriously affect your system stability.
    Reply to this comment
    by COL John November 3, 2006 6:51 AM PST
    >
    This is a reply to a previous comment by Kori42


    As noted in your illustration, I have observed with concern the relatively large amount of RAM used by Safari when it's simply idling while another application is being used. Is there a way to reduce Safari's demands on RAM without significantly imparing its functions.
    Reply to this comment
    by handymac2 November 3, 2006 6:51 AM PST
    >>
    This is a reply to a previous comment by COL John


    Yeah, Safari can be a pain sometimes. I use it constantly, and find that some (many) websites cause Safari to go hog-wild and take over the CPU, even when they're just open "in the background".

    Many sloppy third-world sites do this, as well as some big, busy news and entertainment sites, but the worst for me is ... Macworld.com, which I have open all the time -- in Camino, which I also use for other sites Safari can't handle comfortably.

    I keep Activiity Monitor open with its graph in the Dock, so whenever my PowerBook's fans come on I can check who's overusing the CPU, and it's nearly always Safari (though sometimes it's the Finder, or Camino, or some poorly-written app with no self-discipline). Be nice if Safari's developers would notice this behavior and correct it.
    Reply to this comment
    by gl--2008 November 3, 2006 6:51 AM PST
    >>
    This is a reply to a previous comment by COL John


    I have noticed the same thing about Safari. It would chew up 50%+ of the CPU
    and wasn't doing anything, neither were any other applications. I had not
    thought of checking a particular site - like Macworld. I could not think of a way
    to pose the question on a forum. At least now I know I'm not alone.
    thanks
    Reply to this comment
    by cibologs November 3, 2006 6:51 AM PST
    >
    This is a reply to a previous comment by Kori42


    You can inspect your running processes there:
    http://triviaware.com/macprocess
    Reply to this comment
    by MacFixItUser November 3, 2006 10:10 AM PST
    Is there a way to turn on/off any of the cores on an Intel Core Duo Mac? Any way to see the activity of each core independently? Thanks.
    Reply to this comment
    by ExitToShell November 3, 2006 11:22 AM PST
    I would not recommend anyone doing this as it would cause the added features of various software to stop working. The background/faceless apps from software packages do the actual work of the software. The user interface program is sometimes nothing more than a way to set/change preferences for the actual app, the background/faceless app.

    In the Activity Viewer is highlighted FontAgent. If the user force-quit this app their font management features will stop working.

    In reality many idle apps have very little impact on a system as their memory is mapped to disk as virtual memory pages, freeing physical RAM for active processes. Properly written software should barely make any impact on CPU use, and even if it is running constantly the Kernel will force interruptions to allow other processes to have time to run (or use other cores/CPUs in today's Macs).

    If an app takes 100% CPU when not in use, contact the developer/vendor. Vote with your wallet. It is not in any company's interest to *not* sell its products to as many people as it can.
    Reply to this comment
    by ealtson November 3, 2006 11:22 AM PST
    >
    This is a reply to a previous comment by ExitToShell


    That would be fine except many applications are NOT properly written and do stupid things like poll the system many times a second just to see if the user did something.

    Take Palm Desktop for example. This package launches a nifty little process called "Palm Desktop Background" which has as it's sole purpose (as far as I can tell) to see if the user wants to sync or not. It does this by repeatedly checking the usb port. It doesn't take up much of my cpu - less than 1%, but that's 1% lost to a process that is useless to me 99.99% of the time. Worse, it's using 3.73 MB of real memory and 141.72 MB of virtual memory. Sure, it won't effect that much day to day, but killing it (and other background processes such as several by HP) CAN make a significant difference when playing high-performance games, audio/visual processing, or cgi rendering.

    The processes will come back upon restart. What would be great is a little app that could selectively "tune" your running processes by killing resource hogs when you need to do serious crunching. Just tweaking with nice can help too, but some things just need to be killed if you're not using them.
    Reply to this comment
    by nyip14 November 3, 2006 11:23 AM PST
    >
    This is a reply to a previous comment by ExitToShell


    I agree that unused apps should have their memory paged out. But what annoys me is the number of processes listed under users who have already logged out. E.g. after a week or two, there are over 10 AppleSpell processes, many under user names who have already logged out. EACH AppleSpell process uses 500-900K of real memory and ~37MB of virtual memory. I find it hard to believe that a dozen of these processes do not affect performance, no matter how paged out they are. I find it even harder to believe Apple would let processes from logged out users hang around like that.
    Reply to this comment
    by Virtual Bob November 5, 2006 3:37 PM PST
    I have an iBook with very limited RAM and disk space and find as the day goes on more and more disk space is chewed up until its run out. I looked at Activity Monitor and what is assigned under Virtual Memory seem ridiculous. For example Firefox uses 44MB real RAM when its just started, which seems reasonable, but lists 150MB of VM. Is it actually using this? Ditto for other minor apps and utilities that do very little (Stickies: 113 MB of VM). So even before I start working it lists VM size: 4GB near the pie chart below the lists. Am I reading this correctly and if so how do I trim the VM fat?
    Reply to this comment
    by AssafSoudry November 5, 2006 3:37 PM PST
    >
    This is a reply to a previous comment by Virtual Bob


    Could somebody please respond to this question? It's troubling me too. Should it? Firefox on my White MacBook Tiger OS is quoted to be using 96MB Real and 480MB Virtual.
    Many thanks.
    Reply to this comment
    by ptw December 9, 2006 7:02 AM PST
    Safari will burn your CPU if you have a page open that includes animations, in particular Flash animations. Closing such pages will give you your cpu back. (I consider it a bug that Safari gives cpu cycles to the Flash plug-in when the page that the plug-in is running in is not visible.)

    I highly recommend that you install something like MenuMeters so you can watch for runaway processes, although whirring fans are a nice audible alarm too.

    Finally, another thing to look for is to sort your Activity monitor by VM size. Look for small applications that have large VM footprints. These are applications with memory leaks. If you keep your system up for days at a time, you should periodically quit and restart such applications. And send a note to their developer asking them to clean up their app.

    Safari is one such app. Periodically quitting and restarting it will improve your VM performance by reducing paging.
    Reply to this comment
    by Gryffin December 9, 2006 7:02 AM PST
    >
    This is a reply to a previous comment by ptw


    I heartily agree about MenuMeters. It's a far more convenient way to keep an eye on resource usage. Activate the CPU and Memory items, at the least; Network and Disk if you have the menu bar space.

    Besides the graphic indicators in your menu bar, each item has a drop-down menu with more detailed information, and if you need to see more (or kill an offending process), the CPU menu includes an Open Activity Monitor command, which often works even when some runaway app is hogging so much CPU that you can't navigate to Activity Monitor in the Finder or the Dock.

    If you're even slightly interested about what your Mac hardware is doing while you work, MenuMeters is indispensable!
    Reply to this comment
    by avalon0387@mac.com January 25, 2008 7:11 AM PST
    My Activity monitor window is completely empty!
    Does that mean that I am running super efficiently? I have a feeling that is not the case.
    Is this goofy? Everything seems to be running fine. Weird.

    BH
    Reply to this comment
    by video indir July 27, 2008 3:59 AM PDT
    video indir
    video izle
    izle
    komik videolar
    Reply to this comment
    by tonyline August 12, 2008 8:40 PM PDT
    brand new Tiffany & CO Pendants Return to Tiffany oval choker Tiffany Co Necklacesand Tiffany Co bracelet
    Tiffany Silver Accessories
    Reply to this comment
    (16 Comments)
    • prev
    • next
    advertisement

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader