On Thu, Dec 20, 2012 at 04:06:52AM -0500, Jean-Philippe Ouellet wrote: > On 12/20/12 3:53 AM, Jean-Philippe Ouellet wrote: > > and madvise() them to not be swapped out? > > Oops, I think I might have misinterpreted the meaning of MADV_WILLNEED. > I think I meant mlock().
Why trying to be smarter than the kernel? Mlocking pages will kill you
if there's memory shortage.
The kernel will try to keep much used pages in mem anyway.
-Otto

