Re: [RESEND PATCH 0/3] Allow user to request memory to be locked on page fault

2015-06-02 Thread Eric B Munson
On Mon, 01 Jun 2015, Andrew Morton wrote: > On Fri, 29 May 2015 10:13:25 -0400 Eric B Munson wrote: > > > mlock() allows a user to control page out of program memory, but this > > comes at the cost of faulting in the entire mapping when it is > > allocated. For large mappings where the entire a

Re: [RESEND PATCH 0/3] Allow user to request memory to be locked on page fault

2015-06-01 Thread Andrew Morton
On Fri, 29 May 2015 10:13:25 -0400 Eric B Munson wrote: > mlock() allows a user to control page out of program memory, but this > comes at the cost of faulting in the entire mapping when it is > allocated. For large mappings where the entire area is not necessary > this is not ideal. > > This s

[RESEND PATCH 0/3] Allow user to request memory to be locked on page fault

2015-05-29 Thread Eric B Munson
mlock() allows a user to control page out of program memory, but this comes at the cost of faulting in the entire mapping when it is allocated. For large mappings where the entire area is not necessary this is not ideal. This series introduces new flags for mmap() and mlockall() that allow a user