Originally posted by superlarry:
your understanding is mostly correct.. the problem is that OSX (and maybe BSD?) handles it a little differently. i'm not sure about the technical details, but you'll almost always get pageouts before you're out of physical RAM.
so i guess all i can say is not to be worried - that's normal. i just wish i could explain why ;c) i seem to get different behavior out of linux (2.4.20) - more what i'd expect.
This is because the kernel will "age" pages that are explicitly marked as "probably won't be used again". Since these pages may be used in the future, but aren't likely to be, they are paged out to disk so more real RAM is availble. The pages aren't actually released, because the page MAY be needed in the future.
The Linux kernel is different, it generally won't page out until it absolutly has to.
The OS X behavior is similar to *BSD which is considered to have a better VM system than Linux.
IOW, what the OP is seeing is normal (and generally preffered) behavior.
HTH.