Bugs & Fixes: Dealing with CPU overloads, part one
#2
Posted 12 September 2008 - 10:54 AM
The symptoms described (excessive disk activity, unresponsive system) to me describe a situation in which the user has ran out of RAM, rather than a CPU hog. And here’s my explanation to this:
1) I use my MacBook Pro for research and I can have a process running with near 100% CPU utilisation for a very long time. Meanwhile, I can effortlessly browse the web, listen to music, read/write e-mail, look at my widgets.
2) If, however, a process were using excessive amounts of RAM, it would cause paging, i.e. the use of virtual memory to satisfy the process’s needs, i.e. lot’s of read and write activity on the hard drive — that’s the reason for the noisy harddrive. Also any memory not in active use in the moment would be moved from RAM to the harddrive, i.e. all the memory used by all but the topmost application. So if you wish to switch to a different application, its memory would first need to be read into RAM, i.e. you would have to wait for the already busy harddrive to get to reading that memory and then some more for it to get read. And this is where the sluggishness comes from.
The best way to get out of a not-enough-RAM problem is to close a few applications that you don’t necessarily need open at all times. Typical memory hogs are web browsers, iWeb, iPhoto, sometimes iTunes, although the latest version has gotten better at that.
#3
Posted 12 September 2008 - 11:06 AM
#4
Posted 12 September 2008 - 11:10 AM
Running out of memory does tend to bring your Mac to a halt, though.
To fix it go to Activity monitor and sort by RSIZE (real memory size) and find the culprit. It's usually Safari because it leaks memory live a sieve. You can terminate it there or using the menus.
By the way, the technical term for this is "thrashing", where you don't have enough real memory and the system is paging memory back and forth between the disk and main memory in a vain attempt to run software.
#5
Posted 12 September 2008 - 11:16 AM
If Safari is the culprit for the thrashing, it will gracefully die… You can use the “Open all windows from last session” command to get back to where you were with your browsing afterwards.
#6
Posted 12 September 2008 - 02:20 PM
In the end, however, there have only been two or three different processes that have been the main culprits behind these symptoms. Typically, if I quit the current problematic process, sanity is immediately restored. That's what makes me view it more as a runaway process.
#7
Posted 12 September 2008 - 02:32 PM
#8
Posted 13 September 2008 - 04:49 AM
do shell script "/System/Library/Frameworks/SyncServices.framework/Versions/A/Resources/resetsync.pl full"
Run it and you're good to go. When the machine is bogged down, the fewer actions you have to take to effect the cure, the better. This is about as minimalist as you can get.
- web
#9
Posted 13 September 2008 - 09:00 AM
#10
Posted 14 September 2008 - 09:48 AM
#12
Posted 19 September 2008 - 12:59 PM
#13
Posted 21 September 2008 - 07:53 AM
I’ve been having a lot of “excessive disk activity” on two machines since upgrading them to 10.5.5, which is also when I started using MobileMe. I’ve yet to identify a culprit. I don’t see syncserver revving. I have seen Safari roaring up to 90% CPU usage a couple times, but that still leaves a lot of other system sluggishness unexplained. I doubt RAM is a factor, because I have plenty and I was fine before. It’s a mystery.



Sign In
Register
Help

MultiQuote