[RESEND PATCH V2 2/3] Add mlockall flag for locking pages on fault

2015-06-10 Thread Eric B Munson
Building on the previous patch, extend mlockall() to give a process a way to specify that pages should be locked when they are faulted in, but that pre-faulting is not needed. MCL_ONFAULT is preferrable to MCL_FUTURE for the use cases enumerated in the previous patch becuase MCL_FUTURE will behave

[PATCH V2 2/3] Add mlockall flag for locking pages on fault

2015-06-02 Thread Eric B Munson
Building on the previous patch, extend mlockall() to give a process a way to specify that pages should be locked when they are faulted in, but that pre-faulting is not needed. MCL_ONFAULT is preferrable to MCL_FUTURE for the use cases enumerated in the previous patch becuase MCL_FUTURE will behave