mightymilk

Q: Lion - Memory Usage Problems

Why is Lion using all 4GB of RAM running Mail, Safari (2 tabs), and iTunes?  Snow Leopard was bad enough at handling memory, eating up every available byte and Lion seems to be arbitrarily using even more RAM.  Windows 7 has zero problems handling RAM, there's no reason OS X shouldn't be able handle memory properly.

 

Can someone explain what Apple is doing here?  I'm at a total loss.  For users who just need Safari, Mail, and iTunes... I guess this works.  But how am I expected to reliably run Logic, Final Cut, or Aperture with OS X using every available resource for Web Surfing, E-mail, and Music.  This is totally unacceptable for a multi-million dollar software company greated towards professionals as well as consumers.

 

The following responses are not acceptable by the way:

 

  • Buy more RAM  - I did that already, it will eat up 2/4/8GB, doesn't matter.  Not to mention Apple still sells numerous 2/4GB confirgurations.
  • Buy a newer/more powerful Mac - this is a improper handling of memory issue, not a hardware issue.

 

I'd really love some insight into this.  Thanks for reading.

MacBook Pro, Mac OS X (10.7), 13" (late-2009)

Posted on Jul 21, 2011 5:47 AM

Close

Q: Lion - Memory Usage Problems

  • All replies
  • Helpful answers

first Previous Page 38 of 64 last Next
  • by William Kucharski,

    William Kucharski William Kucharski Jan 4, 2012 10:58 PM in response to louis258
    Level 6 (15,232 points)
    Mac OS X
    Jan 4, 2012 10:58 PM in response to louis258

    All such utilities do is flush all the system buffer caches, meaning the next time your computer needs data formerly held in RAM, it needs to fetch it from disk instead.

     

    This article gives great background on this.

  • by louis258,

    louis258 louis258 Jan 5, 2012 6:36 AM in response to William Kucharski
    Level 1 (0 points)
    Jan 5, 2012 6:36 AM in response to William Kucharski

    Well all this does from what I know is use the genuine purge command from terminal in a plist which activates it every hour or so which the third party apps don't use the purge command.

  • by Allan Eckert,

    Allan Eckert Allan Eckert Jan 5, 2012 7:52 AM in response to louis258
    Level 9 (54,117 points)
    Desktops
    Jan 5, 2012 7:52 AM in response to louis258

    Having read both your article and the one that William posted, I concur with William that your solution is more of a problem then a real solution. As he says all you are doing is forcing your system to slow down until the cache is rebuilt. Doing it hourly is certain to cause your Mac to be slow conbtinuously.

     

    Allan

  • by louis258,

    louis258 louis258 Jan 5, 2012 9:50 AM in response to Allan Eckert
    Level 1 (0 points)
    Jan 5, 2012 9:50 AM in response to Allan Eckert

    yeah well i guess, i guess it depends really, because when i dont have it i get mega amount of swaps used and within like an hour and a half i have to restart my laptop, but with that tweak i dont get swaps and my machine runs fine. its stupid because my sisters macbook same spec has lion on it and her macbook doesnt get sluggish at all... maybe its time i re-installed lion again without restoring it from backup.

  • by louis258,

    louis258 louis258 Jan 5, 2012 9:51 AM in response to louis258
    Level 1 (0 points)
    Jan 5, 2012 9:51 AM in response to louis258

    obviously you know more about this stuff than i do. This was the only thing that worked for me.

  • by Allan Eckert,

    Allan Eckert Allan Eckert Jan 5, 2012 9:53 AM in response to louis258
    Level 9 (54,117 points)
    Desktops
    Jan 5, 2012 9:53 AM in response to louis258

    It sounds like you have a problem with your Mac and this is not a solution but a bandaid. My guess is that you have either something on your Mac that is causing this.

     

    Allan

  • by BlackNova,

    BlackNova BlackNova Jan 6, 2012 11:59 AM in response to louis258
    Level 1 (0 points)
    Jan 6, 2012 11:59 AM in response to louis258

    The main issue is something like this should not be neccessary in order to use OS. I'm just completely annoyed that Apple could not fix memory issues I and many users here have been complaining for more than 2 years already. The last OS X which is just worked for me were Tiger. I've skipped Leopard, and both Snow Leopard and Lion give me the same memory issues - inactive memory keep growing and once free mem is depleted, system just start swapping.

  • by Roque Solis,

    Roque Solis Roque Solis Jan 6, 2012 12:05 PM in response to BlackNova
    Level 1 (0 points)
    Jan 6, 2012 12:05 PM in response to BlackNova

    Well, I've learned a new command, "killall Dock".  Every time I come in and my iMac is bogged down, I open a Terminal, execute this command, wait a few seconds, and I'm back for a few more days.  Again, this memory issue of mine, where my Dock process eats up up to 11GB of RAM, surfaced with Lion, and I've had this iMac for 3 years now.  In fact, prior to this problem, I've never even had to get into any of Apple's forums. 

  • by BlackNova,

    BlackNova BlackNova Jan 6, 2012 1:46 PM in response to Roque Solis
    Level 1 (0 points)
    Jan 6, 2012 1:46 PM in response to Roque Solis

    Well, I think the issue is very dependant on workload. As long as I use my mac only for internet browsing, adium/skype/irc it could easily stay fine for weeks. But if I start to use it for software development - I can trigger memory issues very easy with netbeans, tomcat/glassfish, DB server running and browser running.

     

    The main point is that OS should run without necessety of 'purge'-ing on timely basis. At least not Windows (XP, Vista, 7) nor *nixes need such a remedy.

  • by Joel Bruner1,

    Joel Bruner1 Joel Bruner1 Jan 6, 2012 4:03 PM in response to Michelasso
    Level 1 (40 points)
    Jan 6, 2012 4:03 PM in response to Michelasso

    This might be of some use to have an easier-ish to read output of vmmap's report on a processes purgeable memory?

    paste into Terminal, supply admin password for sudo vmmap to run:

     

    for process in $(ps -A | tail +2 | awk {'print $1'} | sort -n -r); do echo PID $process: $(ps $process | tail +2 | awk {'print $5'}); echo "$(sudo vmmap -purge $process | grep -B2 PURGEABLE)"; echo; done

  • by akeel.nazir,

    akeel.nazir akeel.nazir Jan 10, 2012 6:18 AM in response to mightymilk
    Level 1 (0 points)
    Jan 10, 2012 6:18 AM in response to mightymilk

    I've noticed this problem not just with Safari but Firefox too under Lion. I switched to Chrome and am using the same websites and see no problems at all. Safari as well as Firefox were using up more than 1.5 GB of my RAM.

  • by IvanOhio,

    IvanOhio IvanOhio Jan 10, 2012 9:44 AM in response to akeel.nazir
    Level 1 (15 points)
    Jan 10, 2012 9:44 AM in response to akeel.nazir

    akell.nazir

     

    What numbers are you looking at? physcial or virtual?

  • by akeel.nazir,

    akeel.nazir akeel.nazir Jan 10, 2012 9:51 AM in response to IvanOhio
    Level 1 (0 points)
    Jan 10, 2012 9:51 AM in response to IvanOhio

    Real memory in Activity Monitor

  • by gbullman,

    gbullman gbullman Jan 10, 2012 11:07 AM in response to Joel Bruner1
    Level 2 (301 points)
    Jan 10, 2012 11:07 AM in response to Joel Bruner1

    This same issue is being discussed at some length on the VMware Fusion forums and the information there suggests there is an issue with APIs that Apple provides to "watch" the contents of directories.  In the case of Fusion if host file sharing is on and the contents of folders on the Mac are automatically refreshed within the Virtual Machine via the subject API then Dock memory usage grows more or less uncontrollably as described in this thread.  However if the automatic refresh is disabled then the Dock does not consume memory and the behavior is not present.

     

     

    I've seen it discussed that other applications that would have a use for this API can cause the same issues.  Some examples are things like Dropbox or other file sharing types of things that would monitor the contents of specific folders.

     

     

    From what I understand I do think the ball is in Apple's court to find out what is causing the excessive use of memory by Dock and fix it.

  • by IvanOhio,

    IvanOhio IvanOhio Jan 10, 2012 11:50 AM in response to akeel.nazir
    Level 1 (15 points)
    Jan 10, 2012 11:50 AM in response to akeel.nazir

    akeel.nazir

     

    How much physical RAM do you have in your computer?

     

    Curious, how much virtual memory is displayed when using these programs?

     

    Message was edited by: IvanOhio

first Previous Page 38 of 64 last Next