Keep application out of virtual memory?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by SSzretter, Nov 26, 2008.

  1. SSzretter macrumors newbie

    SSzretter

    Joined:
    Aug 24, 2007
    #1
    I have a server with 8 gigs of ram, and an application that is using 500 megs of physical ram, and 1.6 gigs of virtual. Is there a way to tell OS X to stop using so much virtual for this app, and to instead use my physical ram?

    It is the only app running other than the normal OS X 10.5 stuff.
     
  2. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #2
    I'm not sure why you want to do this. The OS puts things into virtual memory when they haven't been used for awhile. So, it's not going to give you this huge boost in performance by trying to pin it in RAM.
     
  3. Erendiox macrumors 6502a

    Erendiox

    Joined:
    Oct 15, 2004
    Location:
    Brooklyn NY
    #3
    Yea, what he said. OSX is really fantastic at utilizing the RAM you give it, whether it's budgeting a limited amount of RAM or maximizing speed with ample RAM. If the app is only using up 500mb of physical RAM then that's all it needs to run as fast as it can without slowing down for HD pageouts and pageins. Nothing you need to worry about.
     
  4. Phil A. Moderator

    Phil A.

    Staff Member

    Joined:
    Apr 2, 2006
    Location:
    Shropshire, UK
    #4
    Virtual memory on OS X is not the same as paged memory or virtual memory in Windows where it is paged out to disk: Just because an application is showing as having a virtual memory size of xGB, it doesn't mean it's paged that memory out to disk.
    Have a look here for a bit more info on OS X memory management
     
  5. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #5
    Memory management is very complicated in OS X. The only thing you should worry about is pageouts being more frequent than pageins. Open the Terminal and type: top

    The last line before the columns of process info shows pageins and pageouts. If the pageouts are higher than the pageins, then you are using VM for swapping running processes. That is when you should worry, otherwise ignore it.
     

Share This Page