[PATCH V6 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-07 Thread Eric B Munson
On Thu, 06 Aug 2015, Vlastimil Babka wrote: ... > > > >diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c > >index ca1e091..38d69fc 100644 > >--- a/fs/proc/task_mmu.c > >+++ b/fs/proc/task_mmu.c > >@@ -579,6 +579,7 @@ static void show_smap_vma_flags(struct seq_file *m, > >struct vm_area_struct

[PATCH V6 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-07 Thread Thierry Reding
On Wed, Jul 29, 2015 at 11:42:52AM -0400, Eric B Munson wrote: [...] > diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c > index ca1e091..38d69fc 100644 > --- a/fs/proc/task_mmu.c > +++ b/fs/proc/task_mmu.c > @@ -579,6 +579,7 @@ static void show_smap_vma_flags(struct seq_file *m, > struct

[PATCH V6 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-06 Thread Kirill A. Shutemov
On Thu, Aug 06, 2015 at 05:33:54PM +0200, Vlastimil Babka wrote: > On 07/29/2015 05:42 PM, Eric B Munson wrote: > >The cost of faulting in all memory to be locked can be very high when > >working with large mappings. If only portions of the mapping will be > >used this can incur a high penalty

[PATCH V6 3/6] mm: Introduce VM_LOCKONFAULT

2015-08-06 Thread Vlastimil Babka
On 07/29/2015 05:42 PM, Eric B Munson wrote: > The cost of faulting in all memory to be locked can be very high when > working with large mappings. If only portions of the mapping will be > used this can incur a high penalty for locking. > > For the example of a large file, this is the usage

[PATCH V6 3/6] mm: Introduce VM_LOCKONFAULT

2015-07-29 Thread Eric B Munson
The cost of faulting in all memory to be locked can be very high when working with large mappings. If only portions of the mapping will be used this can incur a high penalty for locking. For the example of a large file, this is the usage pattern for a large statical language model (probably