Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FrozenDarkness

macrumors 68000
Original poster
Mar 21, 2009
1,939
1,307
So I bought a macbook pro 13" with 16gb of RAM because I have to run a bunch of VMs. I noticed that even when I'm not running any VMs, my mac freaks out on Ram. This is just with two chrome windows opened mind you:

Nj1r1jQ.png


Have you guys seen something similar? 6GB's used and already in the swap?
 
Do you experience slowdowns or are you merely looking for issues? It is perfectly ok to have some swap. The more RAM you haven the more RAM will be used for caching and stuff.
 
it's not perfectly okay to have some swap. i didn't get 16gb of ram to have my os hit my SSD unnecessarily. I do experience some slowdown and freezes but I realized that was due to something else.
 
it's not perfectly okay to have some swap. i didn't get 16gb of ram to have my os hit my SSD unnecessarily. I do experience some slowdown and freezes but I realized that was due to something else.

actually it is ok , maybe do some reading on the way os's work and utilize swap and memory.

swap can happen whenever the os decided pages are not being used.
 
Last edited:
So many operating system programmers on our forum that know more about how an OS should work than the Apple programmers. :p
 
It's normal to have some trivial amount of swap, even with oodles of RAM. Here's my current state with the system up for 24 hours. I don't know why yours is higher, but maybe you did something earlier that pushed it up a bit.

I like Mavericks memory management. Mavericks pretty much holds onto whatever it can in the File Cache, which freaks a lot of folks out, but it makes sense to use the RAM if it can. Why purge something I'm not using at the moment, but used a few hours ago. I might use that program or file again. But if I open a Parallels VM to which I've assigned 8GB of RAM, it'll purge whatever it needs from the cache to make room.
 

Attachments

  • Screen Shot 2013-11-09 at 12.26.29.png
    Screen Shot 2013-11-09 at 12.26.29.png
    26.1 KB · Views: 709
It's normal to have some trivial amount of swap, even with oodles of RAM. Here's my current state with the system up for 24 hours. I don't know why yours is higher, but maybe you did something earlier that pushed it up a bit.

I like Mavericks memory management. Mavericks pretty much holds onto whatever it can in the File Cache, which freaks a lot of folks out, but it makes sense to use the RAM if it can. Why purge something I'm not using at the moment, but used a few hours ago. I might use that program or file again. But if I open a Parallels VM to which I've assigned 8GB of RAM, it'll purge whatever it needs from the cache to make room.

Bro if you don't free up some ramz your system is going to crash. Listen very carefully, don't open up anymore applications and reboot immediatly. Trust me I've skimmed through a computer book or two in my days. You also might want to go to http://downloadmoreram.com after your reboot to prevent this issue.

:D:cool:
 
This is normal. The OS will use more RAM if the system has more RAM. Windows does the same thing, under 4GB, the OS will use around 1GB, but under 8 or 16GB the OS uses much more (2-3GB).

Unused RAM is wasted RAM, so you should be glad that the OS is using the memory. When you spin up some VMs and actually uses all 16GB with application processes, the OS will delegate and handle it, ie hand over most available memory to the applications as opposed to hogging it for system use. If in this case you still see the system hogging a lot of RAM then it becomes an issue, but I don't think I've seen this happen on OS X.
 
Chrome and Parallels can cause some memory problems. This is not a problem of Mavericks.

I noticed that even when <b>I'm not running any VMs</b>, my mac freaks out on Ram. This is just with two chrome windows opened mind you

it's a problem when your computer defaults to using swap when over 50% of ram is available to be free. that's why a lot of computer tips on windows tells you to turn off or just leave very little page file if you have plenty of ram. it's for fast performance and it also stops the OS from constantly writing onto your SSD.

and also, one of the touted features mentioned in most mavericks reviews is that it takes a long time for mavericks to hit the swap file. i can tell you it's not true based off of my screen shot above.
 
Also, I think it's ridiculous that people believe you have to be an OS Guru to comment on how it handles RAM. We've all used computers forever and should know some things on and off.

By your logic, most of us should comment about hardware either becuase none of us are mechanical engineers or materials science engineers. most of us should comment on politics since we're probably not phd economists or sociologists.
 
We don't know your uptime, and since your file cache is on the low side, it looks like some other apps were using the memory, caused a page write & purged file cache, and when terminated, used memory fall back..
 
Also, I think it's ridiculous that people believe you have to be an OS Guru to comment on how it handles RAM. We've all used computers forever and should know some things on and off.

By your logic, most of us should comment about hardware either becuase none of us are mechanical engineers or materials science engineers. most of us should comment on politics since we're probably not phd economists or sociologists.

I think it was mostly in response to how adamant you were about being right when you were wrong. Beyond that, there already have been a lot of threads like this. I noticed it and I'm far from a regular here.

"it's not perfectly okay to have some swap. i didn't get 16gb of ram to have my os hit my SSD unnecessarily. I do experience some slowdown and freezes but I realized that was due to something else."
 
This is the way Unix/Linux works. It's smart enough to know when a lot of ram is available and loads more of the OS into ram for better performance. It's a good thing. Windows desktop and server still sucks at this btw.

http://www.linuxatemyram.com

So I bought a macbook pro 13" with 16gb of RAM because I have to run a bunch of VMs. I noticed that even when I'm not running any VMs, my mac freaks out on Ram. This is just with two chrome windows opened mind you:

Image

Have you guys seen something similar? 6GB's used and already in the swap?
 
I think it was mostly in response to how adamant you were about being right when you were wrong. Beyond that, there already have been a lot of threads like this. I noticed it and I'm far from a regular here.

"it's not perfectly okay to have some swap. i didn't get 16gb of ram to have my os hit my SSD unnecessarily. I do experience some slowdown and freezes but I realized that was due to something else."

i'm not wrong actually. thanks. it could be a programatical error but please oh great one, explain to me why it makes sense in a theoretical situation to hit swap. I understand why you would want to load programs into RAM, which is fine. It's not, however, fine to load it into swap.

----------

This is the way Unix/Linux works. It's smart enough to know when a lot of ram is available and loads more of the OS into ram for better performance. It's a good thing. Windows desktop and server still sucks at this btw.

http://www.linuxatemyram.com

and quote:

"Do I need more swap?

No, disk caching only borrows the ram that applications don't currently want. It will not use swap. If applications want more memory, they just take it back from the disk cache. They will not start swapping."

----------

We don't know your uptime, and since your file cache is on the low side, it looks like some other apps were using the memory, caused a page write & purged file cache, and when terminated, used memory fall back..

i think this might be the case. although with that much RAM available, I'd hope Mavericks would move it into RAM.
 
i'm not wrong actually. thanks. it could be a programatical error but please oh great one, explain to me why it makes sense in a theoretical situation to hit swap

I could imagine the OS loads big libraries of which only a tiny bit is used. In that case, parts could be swapped away to disk, because that means more ram available to act as a disk buffer.

Anyway if you really want to control stuff, just turn off swap:
http://wiki.summercode.com/how_to_disable_or_enable_swapping_in_mac_os_x
In pre-Mountain Lion times, I always ran without swap because I didn't want to waste SSD space .
 
My guess here is that the swap occurred while you were using a VM and it simply hasn't been pushed out of the swap file for unknown reasons.

I do concur that if you hit swap while having multiple GB of free ram something wrong is happening, but it's hard to say whether or not that's the case here because that swap could have shown up while you were doing something else that was actually fully taxing your ram.
 
From what I have gathered it's perfectly normal for Mavericks to use up as much RAM as possible, which is why there has been an influx of panic threads this past month about too much RAM being used up even though the same processes that were active in Mountain Lion used less RAM.

However, swap being used doesn't seem to be normal. I have 8 GB of RAM and most of the time 0 swap is used but occasionally I have noticed 40-50 MB being used but I don't really know what causes it. It seems to happen after I put my Mac to sleep for a number of hours
 
Also, I think it's ridiculous that people believe you have to be an OS Guru to comment on how it handles RAM. We've all used computers forever and should know some things on and off.
Some people think it is ridiculous you have to go to school before you can be a brain surgeon. Some think you can drive a car right out of the box without taking any lessons and consider drivers licenses to be the stupidest thing around. This is your logic.

If you want to talk/comment about memory usage you can do so but it becomes a lot easier if you actually know how it all works. For that you need to do some research and learning. The same applies to when you think something is flawed/a problem/etc. Investigate, try to find answers. You are not doing any of that and that is a problem. There is nothing wrong with the memory handling, you just fail to understand it. If you dive into how it works (hover the mouse over the graphs in activity monitor; it is not rocket science) you'll understand how it works as well as how stupid this topic is.

TL;DR: do your homework first, think, then complain. Don't skip the homework and thinking part!
 
from experience I believe swap is a bad thing, sourcing your hard drive (bottlenecking). I do video editing, FCPX and AE which are the two main memory drinkers and I can tell you I have never had swap on my late 2012 iMac with 24GB of RAM. I have iStat menus and activity monitor up on an hourly basis monitoring my system while it works too.
 
I'd have to agree with the OP, swap is a Bad Thing. Lion and ML held onto apps and files too long, even after quitting, and so it would go to swap, thinking it was out of RAM. Hence the trusty 'purge' terminal command.

Mavericks was supposed to solve this. Taking up RAM is not a bad thing per se, and Mavericks was built to do this, but it going into swap is.

However, we have no idea what the OP's session was like before taking this snapshot. If he ran a bunch of VMs and pushed RAM into swap territory, OS X won't automatically clean that up just because you quit the VMs.
 
I noticed that even when <b>I'm not running any VMs</b>, my mac freaks out on Ram. This is just with two chrome windows opened mind you

it's a problem when your computer defaults to using swap when over 50% of ram is available to be free. that's why a lot of computer tips on windows tells you to turn off or just leave very little page file if you have plenty of ram. it's for fast performance and it also stops the OS from constantly writing onto your SSD.

and also, one of the touted features mentioned in most mavericks reviews is that it takes a long time for mavericks to hit the swap file. i can tell you it's not true based off of my screen shot above.
Have you read the arstechnica summary of how Mavericks handles memory?

http://arstechnica.com/apple/2013/10/os-x-10-9/17/#compressed-memory
 
Maybe the OP does have a problem with his memory management. I've been running my computer for over two days, and my computer hasn't used any swap. I've played pretty intensive games and used photoshop and indesign as well. Here's what mine says.

Also, this is with seven tabs on safari opened, Airmail, Messages, and VLC all opened. Nothing big opened right now, I guess, but still no swap with my prior uses.
 

Attachments

  • Screen Shot 2013-11-10 at 11.02.37 AM.png
    Screen Shot 2013-11-10 at 11.02.37 AM.png
    23.1 KB · Views: 150
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.