Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-28 Thread Vlastimil Babka
On 05/23/2018 08:07 PM, Reinette Chatre wrote: > On 5/23/2018 4:18 AM, Vlastimil Babka wrote: >> On 05/22/2018 06:41 PM, Reinette Chatre wrote: >>> Currently the Cache Pseudo-Locking allocations are order based because I >>> assumed it was required by the allocator. The contiguous regions needed >>

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-23 Thread Reinette Chatre
Hi Vlastimil, On 5/23/2018 4:18 AM, Vlastimil Babka wrote: > On 05/22/2018 06:41 PM, Reinette Chatre wrote: >> On 5/21/2018 4:48 PM, Mike Kravetz wrote: >>> I'm guessing that most (?all?) allocations will be order based. The use >>> cases I am aware of (hugetlbfs, Intel Cache Pseudo-Locking, RDMA

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-23 Thread Vlastimil Babka
On 05/22/2018 06:41 PM, Reinette Chatre wrote: > On 5/21/2018 4:48 PM, Mike Kravetz wrote: >> I'm guessing that most (?all?) allocations will be order based. The use >> cases I am aware of (hugetlbfs, Intel Cache Pseudo-Locking, RDMA) are all >> order based. However, as commented in previous vers

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-22 Thread Mike Kravetz
On 05/22/2018 09:41 AM, Reinette Chatre wrote: > On 5/21/2018 4:48 PM, Mike Kravetz wrote: >> On 05/21/2018 01:54 AM, Vlastimil Babka wrote: >>> On 05/04/2018 01:29 AM, Mike Kravetz wrote: +/** + * find_alloc_contig_pages() -- attempt to find and allocate a contiguous + *

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-22 Thread Reinette Chatre
On 5/21/2018 4:48 PM, Mike Kravetz wrote: > On 05/21/2018 01:54 AM, Vlastimil Babka wrote: >> On 05/04/2018 01:29 AM, Mike Kravetz wrote: >>> +/** >>> + * find_alloc_contig_pages() -- attempt to find and allocate a contiguous >>> + * range of pages >>> + * @nr_pages: nu

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-21 Thread Mike Kravetz
On 05/21/2018 01:54 AM, Vlastimil Babka wrote: > On 05/04/2018 01:29 AM, Mike Kravetz wrote: >> find_alloc_contig_pages() is a new interface that attempts to locate >> and allocate a contiguous range of pages. It is provided as a more > > How about dropping the 'find_' from the name, so it's more

Re: [PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-21 Thread Vlastimil Babka
On 05/04/2018 01:29 AM, Mike Kravetz wrote: > find_alloc_contig_pages() is a new interface that attempts to locate > and allocate a contiguous range of pages. It is provided as a more How about dropping the 'find_' from the name, so it's more like other allocator functions? All of them have to 'f

[PATCH v2 3/4] mm: add find_alloc_contig_pages() interface

2018-05-03 Thread Mike Kravetz
find_alloc_contig_pages() is a new interface that attempts to locate and allocate a contiguous range of pages. It is provided as a more convenient interface than alloc_contig_range() which is currently used by CMA and gigantic huge pages. When attempting to allocate a range of pages, migration is