From: Anshuman Khandual <anshuman.khandual@arm.com>
To: Mike Kravetz <mike.kravetz@oracle.com>, linux-mm@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>,
David Rientjes <rientjes@google.com>,
Andrea Arcangeli <aarcange@redhat.com>,
Oscar Salvador <osalvador@suse.de>,
Mel Gorman <mgorman@techsingularity.net>,
Mike Rapoport <rppt@linux.ibm.com>,
Dan Williams <dan.j.williams@intel.com>,
Pavel Tatashin <pavel.tatashin@microsoft.com>,
Matthew Wilcox <willy@infradead.org>,
David Hildenbrand <david@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] mm/page_alloc: Add alloc_contig_pages()
Date: Thu, 17 Oct 2019 08:49:33 +0530 [thread overview]
Message-ID: <e13eb7ca-7f2e-5bf8-1f9f-672d65d12b5e@arm.com> (raw)
In-Reply-To: <0ce85182-e00c-8748-32f7-89c30b3be35b@oracle.com>
On 10/17/2019 06:20 AM, Mike Kravetz wrote:
> On 10/16/19 4:02 AM, Anshuman Khandual wrote:
>> HugeTLB helper alloc_gigantic_page() implements fairly generic allocation
>> method where it scans over various zones looking for a large contiguous pfn
>> range before trying to allocate it with alloc_contig_range(). Other than
>> deriving the requested order from 'struct hstate', there is nothing HugeTLB
>> specific in there. This can be made available for general use to allocate
>> contiguous memory which could not have been allocated through the buddy
>> allocator.
>>
>> alloc_gigantic_page() has been split carving out actual allocation method
>> which is then made available via new alloc_contig_pages() helper wrapped
>> under CONFIG_CONTIG_ALLOC. All references to 'gigantic' have been replaced
>> with more generic term 'contig'. Allocated pages here should be freed with
>> free_contig_range() or by calling __free_page() on each allocated page.
>
> I had a 'test harness' used when previously working on such an interface.
> It simply provides a user interface to call the allocator with random
> values for nr_pages. Several tasks are then started doing random allocations
> in parallel. The new interface is pretty straight forward, but the idea
> was to stress the underlying code. In fact, it did identify issues with
> isolation which were corrected.
>
> I exercised this new interface in the same way and am happy to report that
> no issues were detected.
Cool, thanks Mike.
prev parent reply other threads:[~2019-10-17 3:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 11:02 Anshuman Khandual
2019-10-16 11:09 ` David Hildenbrand
2019-10-16 11:13 ` Anshuman Khandual
2019-10-16 11:51 ` Michal Hocko
2019-10-16 12:29 ` David Hildenbrand
2019-10-16 12:41 ` Michal Hocko
2019-10-16 15:31 ` Anshuman Khandual
2019-10-16 15:45 ` Michal Hocko
2019-10-16 16:48 ` David Hildenbrand
2019-10-17 5:14 ` Anshuman Khandual
2019-10-17 7:11 ` Michal Hocko
2019-10-17 7:21 ` David Hildenbrand
2019-10-17 7:34 ` Michal Hocko
2019-10-17 7:38 ` David Hildenbrand
2019-10-17 0:50 ` Mike Kravetz
2019-10-17 3:19 ` Anshuman Khandual [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e13eb7ca-7f2e-5bf8-1f9f-672d65d12b5e@arm.com \
--to=anshuman.khandual@arm.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@suse.com \
--cc=mike.kravetz@oracle.com \
--cc=osalvador@suse.de \
--cc=pavel.tatashin@microsoft.com \
--cc=rientjes@google.com \
--cc=rppt@linux.ibm.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®