Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > On Mon, Jul 27, 2015 at 09:41:26AM -0400, Eric B Munson wrote: > > On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > > > > > On Fri, Jul 24, 2015 at 05:28:43PM -0400, Eric B Munson wrote: > > > > The cost of faulting in all memory to be locked can b

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Kirill A. Shutemov
On Mon, Jul 27, 2015 at 09:41:26AM -0400, Eric B Munson wrote: > On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > > > On Fri, Jul 24, 2015 at 05:28:43PM -0400, Eric B Munson wrote: > > > The cost of faulting in all memory to be locked can be very high when > > > working with large mappings. If on

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > On Fri, Jul 24, 2015 at 05:28:43PM -0400, 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

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Kirill A. Shutemov
On Fri, Jul 24, 2015 at 05:28:43PM -0400, 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. > > Now that we have the new VMA flag for