From: Andrew Morton <akpm@linux-foundation.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: apw@shadowen.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, kniht@linux.vnet.ibm.com,
mel@csn.ul.ie
Subject: Re: [PATCH 1/1] hugetlb: pull gigantic page initialisation out of the default path
Date: Fri, 10 Oct 2008 14:54:18 -0700 [thread overview]
Message-ID: <20081010145418.4d0236ba.akpm@linux-foundation.org> (raw)
In-Reply-To: <200810082331.45359.nickpiggin@yahoo.com.au>
On Wed, 8 Oct 2008 23:31:45 +1100
Nick Piggin <nickpiggin@yahoo.com.au> wrote:
> On Wednesday 08 October 2008 20:34, Andy Whitcroft wrote:
> > As we can determine exactly when a gigantic page is in use we can optimise
> > the common regular page cases by pulling out gigantic page initialisation
> > into its own function. As gigantic pages are never released to buddy we
> > do not need a destructor. This effectivly reverts the previous change
> > to the main buddy allocator. It also adds a paranoid check to ensure we
> > never release gigantic pages from hugetlbfs to the main buddy.
>
> Thanks for doing this. Can prep_compound_gigantic_page be #ifdef HUGETLB?
Yup.
--- a/mm/page_alloc.c~hugetlb-pull-gigantic-page-initialisation-out-of-the-default-path-fix
+++ a/mm/page_alloc.c
@@ -280,6 +280,7 @@ void prep_compound_page(struct page *pag
}
}
+#ifdef CONFIG_HUGETLBFS
void prep_compound_gigantic_page(struct page *page, unsigned long order)
{
int i;
@@ -294,6 +295,7 @@ void prep_compound_gigantic_page(struct
p->first_page = page;
}
}
+#endif
static void destroy_compound_page(struct page *page, unsigned long order)
{
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-10-10 21:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 9:34 Andy Whitcroft
2008-10-08 12:31 ` Nick Piggin
2008-10-10 21:54 ` Andrew Morton [this message]
2008-10-08 14:57 ` Mel Gorman
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=20081010145418.4d0236ba.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--cc=kniht@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mel@csn.ul.ie \
--cc=nickpiggin@yahoo.com.au \
/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