this is a conceptual question that came up from an issue I have.
I've been monitoring memory usage with iStat Pro
and Activity Monitor
for some weeks, since my MacBook Pro (OSX 10.8.4 Mountain Lion 8Gb RAM) became slower to change between applications and started to take some seconds to show me text when I start typing, or even take more than 5 seconds to let me put password when reopening my (turned on) laptop.
I've been reading some topics about this, and generally when I close Safari and Chrome and reopen them, it gets better, although sometimes I need to purge
on Terminal
to free up some memory, but actually I don't have a good idea about the way OSX manages its memory.
As far as I understand, Active Memory is for tasks that are currently being executed, Inactive Memory is for closed apps that may be potentially reopened, Free Memory is fully available memory, but what about Wired Memory, Swap Memory, VM size and Page ins / outs I see on Activity Monitor
?
Since OSX comes pre-configured to have optimal performance (theoretically), I don't really like to purge
and I don't want to change memory swapping configurations before having a good understand about what I am doing.
Can anyone better explain to me how these memories works out and make some suggestion for my issues? Specially the one with the password, If it helps, I noticed it became tougher when I started to use WiFi connection and turned WiFi permanently on.
EDIT: After OS X 10.9 Mavericks, the password issue has disappeared either on WiFi or not. Now I can open the laptop and immediately start typing my password and it accepts.
purge
. The operating system has much more information than you do about memory usage and processes and knows how to handle memory handling and swapping better than the user.