Michelasso wrote:
R C-R wrote:
Again, everything is just vague.
It isn't vague. It's just so complicated that you cannot assume anything means anything other than exactly how it is defined in those internals you don't want to read.
The top header value that I showed so many times in this line:
MemRegions: 13373 total, 915M resident, 44M private, 267M shared. PhysMem: 331M wired, 1543M active, 332M inactive, 2207M used, 864M free.
Like R C-R commented, with these things being as "complicated" as they are, one should not assume they mean anything esle, but exactly their definition.
Maybe you will care to note, that 'resident' and 'actve' are listed in two rows. One deals with the memory regions (mapping) and the other deals with physical memory.
As we talk about RAM shortage, we should really look at the physical memory statistics, and that incldes only wired, active, inactive and free. Everything else is accounted for in the virtual memory space and is of little interest to this discussion.
By the way, one ofter overlooked fact is that 'wired' memory is actually what the kernel allocates/manages. It may do so on behalf of user level processes (this includes the 'system' processes and the processes started by the respective user). This memory is never paged out to swap. This makes it different from 'active'. If you have significant portion of your memory wired, you need to investigate the applications that you use -- it will typically not show as attached to an specific application.
Right now we are looking at "real memory" numbers that are an approximation the least, misinforming the worst. If there are some many people coming out with the same question there must be a reason. Is it because of a very bad approximation? Ok Apple, just say so. That would enough for an explanation.
Let's be clear on this. Apple invented none of this VM stuff. Most of it comes from research projects such as Mach and BSD. It is not rocket science yes, it is well understood technology, unfortunately by not that many people.
What Apple did was to tune VM for OS X, so that you get specific experience. Apparently, that tuning might not match well the typical mix of applications for every user.
Perhaps people who experience this behaviour should look at what common set of applications they use.
By the way, when one says 'Safari ate all my memory' -- perhaps they had some plugins enabled in Safari, such as Flash that actually ask Safari to allocate all that memory for them. Same for Dock etc.
While Apple provides the OS X platform and few applications, they cannot save the user from themselves, or from the bad applications they insist to run on their computer.