On Mon, Sep 05, 2011 at 10:46:50AM +0200, Manuel Bouyer wrote: > You have mlock(2) for this. I think ntpd uses it, you can have a look here. > Of course you don't want to mlock a big process ... Do you suggest to use mlock(NULL, (size_t)-1) ? -- Emmanuel Dreyfus manu%netbsd.org@localhost