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

2015-05-19 Thread Eric B Munson
On Fri, 15 May 2015, Eric B Munson wrote: > On Thu, 14 May 2015, Michal Hocko wrote: > > > On Wed 13-05-15 11:00:36, Eric B Munson wrote: > > > On Mon, 11 May 2015, Eric B Munson wrote: > > > > > > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > > > > > On Fri, 8 May 2015 15:33:43 -0400

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

2015-05-15 Thread Eric B Munson
On Thu, 14 May 2015, Michal Hocko wrote: > On Wed 13-05-15 11:00:36, Eric B Munson wrote: > > On Mon, 11 May 2015, Eric B Munson wrote: > > > > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > > > On Fri, 8 May 2015 15:33:43 -0400 Eric B Munson > > > > wrote: > > > > > > > > > mlock() a

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

2015-05-14 Thread Eric B Munson
On Thu, 14 May 2015, Michal Hocko wrote: > On Wed 13-05-15 11:00:36, Eric B Munson wrote: > > On Mon, 11 May 2015, Eric B Munson wrote: > > > > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > > > On Fri, 8 May 2015 15:33:43 -0400 Eric B Munson > > > > wrote: > > > > > > > > > mlock() a

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

2015-05-14 Thread Michal Hocko
On Wed 13-05-15 11:00:36, Eric B Munson wrote: > On Mon, 11 May 2015, Eric B Munson wrote: > > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > On Fri, 8 May 2015 15:33:43 -0400 Eric B Munson > > > wrote: > > > > > > > mlock() allows a user to control page out of program memory, but this

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

2015-05-13 Thread Eric B Munson
On Mon, 11 May 2015, Eric B Munson wrote: > On Fri, 08 May 2015, Andrew Morton wrote: > > > On Fri, 8 May 2015 15:33:43 -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 i

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

2015-05-13 Thread Eric B Munson
On Wed, 13 May 2015, Michal Hocko wrote: > On Fri 08-05-15 16:06:10, Eric B Munson wrote: > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > On Fri, 8 May 2015 15:33:43 -0400 Eric B Munson > > > wrote: > > > > > > > mlock() allows a user to control page out of program memory, but this >

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

2015-05-13 Thread Michal Hocko
On Fri 08-05-15 16:06:10, Eric B Munson wrote: > On Fri, 08 May 2015, Andrew Morton wrote: > > > On Fri, 8 May 2015 15:33:43 -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

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

2015-05-11 Thread Eric B Munson
On Mon, 11 May 2015, Andrew Morton wrote: > On Mon, 11 May 2015 10:36:18 -0400 Eric B Munson wrote: > > > On Fri, 08 May 2015, Andrew Morton wrote: > > ... > > > > > > > > Why can't the application mmap only those parts of the file which it > > > wants and mlock those? > > > > There are a numb

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

2015-05-11 Thread Andrew Morton
On Mon, 11 May 2015 10:36:18 -0400 Eric B Munson wrote: > On Fri, 08 May 2015, Andrew Morton wrote: > ... > > > > > Why can't the application mmap only those parts of the file which it > > wants and mlock those? > > There are a number of problems with this approach. The first is it > presumes

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

2015-05-11 Thread Eric B Munson
On Fri, 08 May 2015, Andrew Morton wrote: > On Fri, 8 May 2015 15:33:43 -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: [PATCH 0/3] Allow user to request memory to be locked on page fault

2015-05-11 Thread Eric B Munson
On Fri, 08 May 2015, Andrew Morton wrote: > On Fri, 8 May 2015 16:06:10 -0400 Eric B Munson wrote: > > > On Fri, 08 May 2015, Andrew Morton wrote: > > > > > On Fri, 8 May 2015 15:33:43 -0400 Eric B Munson > > > wrote: > > > > > > > mlock() allows a user to control page out of program memory

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

2015-05-08 Thread Eric B Munson
On Fri, 08 May 2015, Andrew Morton wrote: > On Fri, 8 May 2015 15:33:43 -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: [PATCH 0/3] Allow user to request memory to be locked on page fault

2015-05-08 Thread Andrew Morton
On Fri, 8 May 2015 16:06:10 -0400 Eric B Munson wrote: > On Fri, 08 May 2015, Andrew Morton wrote: > > > On Fri, 8 May 2015 15:33:43 -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 map

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

2015-05-08 Thread Andrew Morton
On Fri, 8 May 2015 15:33:43 -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