Re: [PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-05-20 Thread Kirill A. Shutemov
On Tue, May 19, 2015 at 04:37:25PM +0200, Vlastimil Babka wrote: > On 05/15/2015 03:41 PM, Kirill A. Shutemov wrote: > >On Fri, May 15, 2015 at 02:56:42PM +0200, Vlastimil Babka wrote: > >>On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > >>>With new refcounting THP can belong to several VMAs. Th

Re: [PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-05-19 Thread Vlastimil Babka
On 05/15/2015 03:41 PM, Kirill A. Shutemov wrote: On Fri, May 15, 2015 at 02:56:42PM +0200, Vlastimil Babka wrote: On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: With new refcounting THP can belong to several VMAs. This makes tricky to track THP pages, when they partially mlocked. It can lea

Re: [PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-05-15 Thread Kirill A. Shutemov
On Fri, May 15, 2015 at 02:56:42PM +0200, Vlastimil Babka wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > >With new refcounting THP can belong to several VMAs. This makes tricky > >to track THP pages, when they partially mlocked. It can lead to leaking > >mlocked pages to non-VM_LOCKED

Re: [PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-05-15 Thread Vlastimil Babka
On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: With new refcounting THP can belong to several VMAs. This makes tricky to track THP pages, when they partially mlocked. It can lead to leaking mlocked pages to non-VM_LOCKED vmas and other problems. With this patch we will split all pages on mloc

Re: [PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-04-29 Thread Jerome Marchand
On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > With new refcounting THP can belong to several VMAs. This makes tricky > to track THP pages, when they partially mlocked. It can lead to leaking > mlocked pages to non-VM_LOCKED vmas and other problems. > > With this patch we will split all pages

[PATCHv5 07/28] thp, mlock: do not allow huge pages in mlocked area

2015-04-23 Thread Kirill A. Shutemov
With new refcounting THP can belong to several VMAs. This makes tricky to track THP pages, when they partially mlocked. It can lead to leaking mlocked pages to non-VM_LOCKED vmas and other problems. With this patch we will split all pages on mlock and avoid fault-in/collapse new THP in VM_LOCKED v