Create mappings as much as possible, it will not "keep RAM busy" unless you actually use it.
If you are worried that the RAM lesson is busy after you do this, call madvise(MADV_DONTNEED) - this will clear the pages and return you new pages from the zero pool if you receive them again.
Damon
source share