On Thu, Jul 20, 2006 at 05:11:20PM +1000, Carlo Sogono wrote:
> Hehe. In the meantime I think I might have hit the jackpot here:
> 
> $ man 2 mlock
> 
> Will be trying this out tom first thing!!!
> 
> :) :) :) :) :) :) :) <=== Carlo

That might be a bit drastic; it requires root or
CAP_IPC_LOCK privilege. 

Maybe you could try madvise; something like

        madvise(start, length, MADV_WILLNEED);

might work.

Madvise advice can be completely ignored,
but it's worth a try.


Matt

_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to