Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-11 Thread David Hildenbrand
On 11.02.21 01:56, Mike Kravetz wrote: On 2/8/21 2:38 AM, Oscar Salvador wrote: alloc_contig_range is not prepared to handle hugetlb pages and will fail if it ever sees one, but since they can be migrated as any other page (LRU and Movable), it makes sense to also handle them. For now, do it

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread Mike Kravetz
On 2/8/21 2:38 AM, Oscar Salvador wrote: > alloc_contig_range is not prepared to handle hugetlb pages and will > fail if it ever sees one, but since they can be migrated as any other > page (LRU and Movable), it makes sense to also handle them. > > For now, do it only when coming from

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread David Hildenbrand
On 10.02.21 15:14, Oscar Salvador wrote: On Wed, Feb 10, 2021 at 03:11:05PM +0100, David Hildenbrand wrote: On 10.02.21 15:09, Oscar Salvador wrote: On Wed, Feb 10, 2021 at 09:56:37AM +0100, David Hildenbrand wrote: On 08.02.21 11:38, Oscar Salvador wrote: alloc_contig_range is not prepared

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread Oscar Salvador
On Wed, Feb 10, 2021 at 03:11:05PM +0100, David Hildenbrand wrote: > On 10.02.21 15:09, Oscar Salvador wrote: > > On Wed, Feb 10, 2021 at 09:56:37AM +0100, David Hildenbrand wrote: > > > On 08.02.21 11:38, Oscar Salvador wrote: > > > > alloc_contig_range is not prepared to handle hugetlb pages and

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread David Hildenbrand
On 10.02.21 15:09, Oscar Salvador wrote: On Wed, Feb 10, 2021 at 09:56:37AM +0100, David Hildenbrand wrote: On 08.02.21 11:38, Oscar Salvador wrote: alloc_contig_range is not prepared to handle hugetlb pages and will fail if it ever sees one, but since they can be migrated as any other page

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread Oscar Salvador
On Wed, Feb 10, 2021 at 09:56:37AM +0100, David Hildenbrand wrote: > On 08.02.21 11:38, Oscar Salvador wrote: > > alloc_contig_range is not prepared to handle hugetlb pages and will > > fail if it ever sees one, but since they can be migrated as any other > > page (LRU and Movable), it makes sense

Re: [RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-10 Thread David Hildenbrand
On 08.02.21 11:38, Oscar Salvador wrote: alloc_contig_range is not prepared to handle hugetlb pages and will fail if it ever sees one, but since they can be migrated as any other page (LRU and Movable), it makes sense to also handle them. For now, do it only when coming from alloc_contig_range.

[RFC PATCH 1/2] mm,page_alloc: Make alloc_contig_range handle in-use hugetlb pages

2021-02-08 Thread Oscar Salvador
alloc_contig_range is not prepared to handle hugetlb pages and will fail if it ever sees one, but since they can be migrated as any other page (LRU and Movable), it makes sense to also handle them. For now, do it only when coming from alloc_contig_range. Signed-off-by: Oscar Salvador ---