can somebody explain swap vs. page outs vs. page ins for me? I thought I knew what they all were but now I'm thinking I don't... RAM 101?
I do understand that they all have to do with needing more RAM than you have and therefore writing to the HDD, just don't know the difference between the 3.
haha ok here is a basic run down...
so i take it that you understand the concept of Virtual Memory? VM = physical hdd storage is used as actual "RAM", the computer thinks that it has access to this directly.
there are a number of reasons why virtual memory might be used,
1. a program has been idle for a while - so OSX will "page in" a page file to VM.
2. there isnt enough free RAM to open a program/refresh a program, so OSX will "page in" the least used sections of memory to VM.
so from this we have 3 things.
- page in: when the computer sends some RAM to virtual memory.
- page out: when the computer brings page some RAM from virtual memory.
- swap file: this is a file stored on your computer and is the file that acts as the virtual memory. (this file is located at hdd->private->var->vm i believe). this swap file will normally start off at 0 in size, and will increase as needed until it reaches the size of your physical RAM. in some extreme cases it can go bigger (i have seen 1.5x bigger max).
ive attached an extreme case of page ins/outs (from my own computer
any questions class?