Terminal Tips: Monitor System Performance with Top
Launch the Terminal (located in /Applications/Utilities/). At the command line, type top and hit
return. You will see something that looks like this:
This screen will continue to update live, giving you the latest information on your system performance,
including how much memory you are using, how much processor is being used, and which program is eating up the most of
your system resources. If there is a real hog running on your system, all you have to do is launch another
Terminal window by going to File—>New Shell and type kill followed by the PID number of the system
hog and return to force the program to quit. To quit top, simply hit q or CTRL+C.
Share
Launch the Terminal (located in /Applications/Utilities/). At the command line, type top and hit return. You will see something that looks...
Add a Comment
You can drop top's resorce usage quite a bit by running "top -FRu" which eliminates the RPRVT and RSHRD stats and also doesn't report on shared lib usage, but cuts resource use from about 15% on my system to about 2%. I'm guessing Linux's top is faster either because it doesn't report that kind of information by defualt, or because the kernel keeps that information in a handier form for top's use (which may or may not be more handy for the kernel's use!). I beleve top is faster in FreeBSD as well, but FreeBSD's doesn't report RPRVT or RSHRD, or a bunch of other stuff OSX's does.
March 22 2005 at 2:11 PM Report abuse Permalink rate up rate down ReplyKristen (Post 8) - If you type "man top" at the command line it will bring up the manual for top. There are explanations of data that top displays.
March 22 2005 at 10:24 AM Report abuse Permalink rate up rate down ReplyI'm not sure why top itself should be such a resource hog for you - running it one of the linux boxes here shows it using 0.1%
March 22 2005 at 8:13 AM Report abuse Permalink rate up rate down ReplyAnyone know of a good tutorial that explains what all that stuff in top means?
March 21 2005 at 10:58 PM Report abuse Permalink rate up rate down ReplyWhat's the difference between top and OSX's Activity Monitor's window? If users are *nix illiterate, this might be easier and less scary.
March 21 2005 at 6:55 PM Report abuse Permalink rate up rate down ReplyWhen running top on linux, I've always noticed that top seems to consume a relatively large amount of system resources, so I avoid leaving it running.
March 21 2005 at 4:02 PM Report abuse Permalink rate up rate down ReplyIs there a differences between the 'top' binary used in OSX versus Linux? When I run top on my Mac it usually shows top taking 12-14 percent of the cpu. Even the screenshot shows top using 21.4%. When I run top on my linux box it doesn't even appear in the list.
March 21 2005 at 3:51 PM Report abuse Permalink rate up rate down ReplyI've been using top since getting my iBook a month ago. It's great having the beautiful OS X GUI on top of rock solid UNIX. Chris http://amateureconblog.blogspot.com/
March 21 2005 at 3:13 PM Report abuse Permalink rate up rate down ReplyIf you really want to find that system hog try using "top -u". This sorts the processes by cpu usage and the top offenders will be listed first.
March 21 2005 at 3:13 PM Report abuse Permalink rate up rate down ReplyThanks, Scott. Added it. I don't know why I always go the interrupt route...
March 21 2005 at 3:11 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



11 Comments