Is it possible to allocate big chunk (512Mb-1Gb with 4Gb installed) of real memory without dropping it to swap?
My final intention is to free system memory: os x has a p
The mlock function will lock pages into physical memory. I'm not sure what the limits are.
You should be extremely sure you really want to do this. It's not a nice thing to do to the rest of the system.