12

I have a 27'' iMac (Late 2012, OS X 10.9.2) with 8GB RAM. The usage of memory is always above 7GB, even though I don't think I am running that much stuff. This leads to the occasional hanging of a program and occasional feeling of the computer being lagged.

The heaviest thing I am running is a Parallels virtualization of a defunct Windows laptop (for my Windows-only programs; work-related). Then I mostly surf with Chrome (10-20 tabs, some with youtube videos). Of course I have other things opened, like Mail, Evernote and a few more. But I don't think a 8GB RAM computer should be overwhelmed by that. I could be wrong.

I am willing to provide an export of processes from the Activity Monitor. I tried looking into it, of course, and I am running A LOT of small processes (unknown to me) -- system stuff I presume. I am a long-time PC user and I know my way around process management in PCs, but not on Mac.

What do you think? Do I just need more RAM or it doesn't feel like it?

Regards,

  • Don't worry, I've 16GB RAM on MBR and it's always full as well. – kenorb Aug 24 '15 at 19:51
  • What does activity monitor show - Parallels with a Windows VM will take a lot of RAM – user151019 Oct 4 '18 at 17:14
23

Because OSX manages memory (as does Windows) it is often difficult to tell if performance issues are caused by memory limits. Technically, you really want the OS to capture all the available memory and allocate as needed, in which case, you would see all of the memory being 'used', even though there may be memory available but not allocated by the OS.

This is somewhat analogous to what is happening in OSX and Win7+. However, Apple has made it confusing in the past with many memory classifications, like Wired, Swap, Real, etc.

Luckily, you are running Mavericks, and a new feature of Mavericks is the Memory Pressure graph, described in the Apple support document here: http://support.apple.com/kb/HT5890

enter image description here

Basically, if the memory graph shows Red, you need more RAM, if its Green, you are good. I suggest reading the article for more details, but the Red, Yellow, Green is a great visual tool to help guide where you might be seeing problems.

Depending on your model, I have personally found Macs suffer more from hard drive access speed than memory limits, so an SSD, if your iMac does not have one, has a huge impact (and unfortunately quite a bit of work to put into your iMac)

9

As any modern operating system, OS X tries to make use of RAM as much as possible. For example, OS X:

  • keeps data in memory when an application quits to gain time if it’s launched again;
  • caches recently used files from your (slow, slow) hard drive for faster later access.

Obviously, this memory is still available for other uses if need be. But the system rightfully see no need to “free” it right now: it waits for the need to appear.

This means that, after running for a while, your computer will always indicate that your memory is completely used or almost. It doesn’t mean you don’t have enough RAM, just that the system doesn’t let it go to waste.

To know if you’re actually lacking in memory, you should mainly check if you’re swapping often. I would refer to @cmason’s excellent answer.

  • 1
    Thanks for the edits. I also wonder if compressed memory was part of the culprit). – Blaisorblade Apr 29 '14 at 18:14
1

Get yourself an SSD. 10.9.2 knows quite well how to efficiently manage your RAM and you should not worry about it. As it is said above OSX will try and keep as much memory used as possible, for healthy reasons.

8GB is right for normal usage (heavy video/graphic editing not considered normal in this context).

I have an early 2011 15" MBP w/8GB that just became a different, way faster, machine when I installed an SSD. I run Win7 virtual machines off VirtualBox, with the virtual machines on an external FireWire 800 drive, no problem.

1

I like @cmason's answer, but I'd like to clarify a few foundational things.

You have two separate questions here: (1) The lags you report is most likely hard disk-induced, as hinted by some answers. Going to the right place in a hard disk takes often on the order of ~10 ms, and these delays build up to be visible to a user. (2) Memory is full because the memory is used as cache of the disk.

The only relation is that when the system needs to read again the same stuff from disk, having more RAM used as cache could help (if what you need was kept in RAM).

But whenever the system reads new stuff from the hard disk, only a faster disk (an SSD) can help (alternatively, some systems try to guess what the system is going to read from the disk and read it in advance, but this cannot do miracles in general, since computers don't have crystal balls to predict the future).

0

A RAM upgrade is cheap and easy so just do it rather than try to understand the complexities of memory management under OS X.

An SSD upgrade is expensive and hard (especially on an iMac) but will make a far more immediate and noticable difference. I’ve never tried it but I suspect that even running OS X off an external Thunderbolt-connected SSD would be faster than the internal spinning disk (although slower than an internal disk).

Most likely, between Parallels and Chrome, OS X ends up swapping memory to disk and disk i/o on a rotating disk is sloooooow. My experience is that browsers are reluctant to release memory over time so try restarting Chrome when you notice the problem. Most likely that’s easier than restarting Parallels.

  • 8
    Re your first paragraph, this is exactly the sort of naive "solution" that the hardware manufacturers want you to use. "Just buy more RAM" No, don't! Understand what you're using and why. Don't let the capitalists win! – Lightness Races with Monica Apr 26 '14 at 19:57
0

8 gigs of ram is fine for your mac brother...ive got a 2014 mbp w/8gs, and have the same issue. the memory looks like its always almost used up, but its actually just in the app and file cache...i personally like it to show all my mem and not be in the cache(s), but what can ya do? lol...

and btw - ive got an ssd. ive also been nothing but a mac user my entire life, and i can honestly tell ya it makes a WORLD of difference....from a bootup time of about 1 min & a 1/2 usually, to a bootup time of about 5 seconds.....NO BS ;)

-1

People recommending RAM upgrade - wasting your time and money. Monitored the issue for a while now on brand new 30" desktop Mac, had 8Gb to start with. RAM use just climbs up and up over days and apps are not releasing any, after 3 days Firefox seats with 4GB RAM, other apps holding on to plenty leaving nothing to the system and it's absolutely crazy slow and unusable.

Upgraded to add another 8GB to total of 16. And what do you know? 3 days later all 16GB exosted, Firefox at 5GB, Atom text editor at 4GB, other apps similar, mail holding onto 3GB.

This numbers are insane, they are not normal, this doesn't happen on real PC's ie Windows or Linux. This is entirely Apple OS fault and poor RAM management.

So don't buy more RAM, save the money. I am still looking for hopefully a programmatic solution to force it release the ram from the apps.

Update: turns out curtain apps are smart enough to have their own RAM management, editing Firefox about:config:

browser.cache.memory.enable - true
browser.cache.memory.capacity - something sensible
config.trim_on_minimize - true
browser.sessionhistory.max_entries - 10
nglayout.initialpaint.delay - 0
  • Is there an answer in there or is it just a rant? If you're trying to answer this 2 year-old question, please edit it to address the problems raised by the OP. If not, you risk having this answer voted down. – fsb Feb 2 '17 at 23:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .