How to Identify Memory Usage Issues in Mac OS X

macosmemoryosx-snow-leopardprocess

I noticed that if I use Mac OS X for a while, I get really low on memory and things start to get slow. I have been suspecting that something was not quite right, because in “Activity Monitor” I would look at the memory usage and it didn’t seem like I was using that much memory.

I added up all the memory from all processes shown in “Activity Monitor.” It adds up to only 1769.2 MB, even though I’m supposed to have 4GB memory. I only have 100MB of memory free. Why is that? It’s showing 625MB as wired, 1.63GB as active, and 1.65 GB as inactive. It says that 3.90 GB are being used.

Best Answer

You don't have a problem here.

100 + 625 + 1024 * (1.63 + 1.65) = 4083.72, about 4GB. “Used” are all those categories but "free" combined.

Inactive memory was used before, but is no longer in use. The system can quickly reallocate it if there's a need. See Apple’s support article on this.

That’s why other memory monitors—such as iStat menus if I recall correctly—display both “free” and “inactive” as unused/free.

As for the difference between “Wired + Used” and the sum of all processes,

  • Make sure you’re displaying all processes in Activity Monitor.
  • Don’t add the numbers up by hand. You can select all processes, copy and paste into Numbers to sum real memory up (filter through a text editor first to remove " MB" first to allow calculations, if necessary).

Your machine getting slow has likely another reason.

Related Question