Clear virtual memory?

Discussion in 'macOS' started by klaxamazoo, Nov 16, 2009.

  1. klaxamazoo macrumors 6502

    Joined:
    Sep 8, 2006
    #1
    My activity monitor says I'm suing 122.43 GB of virtual memory. I'm sure that the number is much, much less. But I would still like to reset the virtual memory.

    Are there any terminal commands to rest the vm?
     
  2. MrCheeto macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #2
    Please, I really don't think this situation calls for any legal action...






    And seriously, I don't know but there is an application that clears your cache (memory included). I know nothing of clearing virtual memory, GL,MHDD
     
  3. bigboy99 macrumors 6502

    Joined:
    Nov 12, 2005
    Location:
    Sarasota, FL
    #3
    iFreemem releases memory that has been gobbled up and is no longer being used. There's a new version for SL.
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
  5. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #5
    I'd advice your virtual memory to hire a lawyer :D
     
  6. klaxamazoo thread starter macrumors 6502

    Joined:
    Sep 8, 2006
    #6
    I found the first link. The only command is:
    sudo periodic daily weekly monthly

    Do I just type that into terminal.

    Thanks.

    ohh, and my Virtual Memory had better get a lawyer, I took my bank to court recently and won $500, I think I can take the VM down too.
     
  7. klaxamazoo thread starter macrumors 6502

    Joined:
    Sep 8, 2006
    #7
    I ran
    sudo periodic daily weekly monthly

    and my virtual memory is still at 110 GB. I've tried restarting my computer also. I looked at my main folders and I'm missing about 100 GB of hard drive memory.
     
  8. MrCheeto macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
  9. Jisuo macrumors 6502

    Joined:
    Dec 4, 2008
    Location:
    Sweden
    #9
    Virtual memory is exactly what is says, VIRTUAL. The program doesn't really take that amount of space... They just say "hey I want 10GB of virtual memory" to OS X and he says "sure!". Then maybe the program uses 50MB of that 10GB.

    In short... DON'T WORRY ABOUT IT.
     
  10. klaxamazoo thread starter macrumors 6502

    Joined:
    Sep 8, 2006
    #10
    I am missing about 100 GB of hard disk space and the virtual memory should reflect was is being asked for by the programs that are running. Since I've restarted my computer many times, the VM should be around 25-40 like it used to be. Not 100+ GB.

    Maybe there is a memory leak or out of control log file. But there should be some way to reset the VM just to make sure that it isn't the problem.
     
  11. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #11
    What is the problem? I don't see any. How do you know it should be lower. That 100GB is the total of all processes. You have to lok at them one at a time, not in total. What seems to be the largest, I'd start there. But why care? VM is simply a book keeping device. It is "virtual" and does not actually even exist.

    What's happend is that now that we have 64-bit apps they can address huge amounts of virtual memory, so they do.
     
  12. klaxamazoo thread starter macrumors 6502

    Joined:
    Sep 8, 2006
    #12
    Maybe the VM number means absolutely nothing in terms of real performance, but I would prefer a tidy house and there is no use arguing about peoples preferences; especially on the internet.

    So, if somebody knows how to reset/clear the VM then I would appreciate their help.
     
  13. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #13
    You can't. You can quit programs to "free" the VM ranges they're using, and you can reboot the computer to (possibly) free some of the VM ranges the kernel and other OS systems are using.

    If you could free VM ranges without quitting the app that requested them then the app would likely crash.
     
  14. Mac's Rule, Aug 23, 2013
    Last edited: Aug 23, 2013

    Mac's Rule macrumors newbie

    Joined:
    Aug 23, 2013
    #14
    Is it ok for my virtual memory to be 80+ % of my hard drive? Right now my virtual memory is 273 GB Running Lion, 4GB of RAM, 320GB HDD
     

    Attached Files:

  15. Mac's Rule macrumors newbie

    Joined:
    Aug 23, 2013
    #15
    Now it has gone above 330GB. Is there a reason it has gone above 300?
     

    Attached Files:

  16. Mr. Retrofire macrumors 601

    Mr. Retrofire

    Joined:
    Mar 2, 2010
    Location:
    www.emiliana.cl/en
    #16
    In your case OS X uses ≈ 4 GB (3.15 GB, rounded up) for the VM (swap files).
     
  17. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #17
    The activity monitor help file (which is seen by clicking the help button in the menu bar) states:
     
  18. benwiggy macrumors 68020

    Joined:
    Jun 15, 2012
    #18
    My VM is frequently larger than my hard drive.

    1. Do you actually have a problem that you have reason to believe is caused by excessive VM?
    If not, continue to use your computer normally and don't worry about the numbers.
     

Share This Page