From: Andrea Arcangeli <aarcange@redhat.com>
To: Luca Tettamanti <kronos.it@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Mel Gorman <mel@csn.ul.ie>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] compaction: don't depend on HUGETLB_PAGE
Date: Sat, 22 Jan 2011 19:38:00 +0100 [thread overview]
Message-ID: <20110122183800.GU9506@random.random> (raw)
In-Reply-To: <AANLkTikdwZp1r_MD4TH7bsLjzPAtHzq7XWoLZmFwdK=S@mail.gmail.com>
Hello,
On Sat, Jan 22, 2011 at 03:48:03PM +0100, Luca Tettamanti wrote:
> Hello Andrea,
> this commit:
>
> commit 5d6892407cab23d4bf2f6de065ca351a53849323
> Author: Andrea Arcangeli <aarcange@redhat.com>
> Date: Thu Jan 13 15:47:07 2011 -0800
>
> thp: select CONFIG_COMPACTION if TRANSPARENT_HUGEPAGE enabled
>
> causes this warning during the configuration process:
>
> warning: (TRANSPARENT_HUGEPAGE) selects COMPACTION which has unmet
> direct dependencies (EXPERIMENTAL && HUGETLB_PAGE && MMU)
>
> This happens because 'select' does not enable the dependencies of its
> target, so when I selected THP it also enabled COMPATION but I don't
> have HUGETLBFS (=HUGETLB_PAGE) enabled.
> Making THP select HUGETLB_PAGE fixes the warning but I'm not 100% sure
> that's correct (does it work without HUGETLBFS?).
Mel, what's your take about this issue?
Luca does the below fix all your .config problems?
====
Subject: compaction: don't depend on HUGETLB_PAGE
From: Andrea Arcangeli <aarcange@redhat.com>
COMPACTION doesn't depend on HUGETLB_PAGE, it doesn't depend on THP
either, it is also useful for regular alloc_pages(order > 0) including
the very kernel stack during fork (THREAD_ORDER = 1). It's always
better to enable COMPACTION.
The warning should be an error because we would end up with MIGRATION
not selected, and COMPACTION wouldn't work without migration (despite
it seems to build with an inline migrate_pages returning -ENOSYS).
I'd also like to remove EXPERIMENTAL: compaction has been in the
kernel for some releases (for full safety the default remains
disabled which I think is enough).
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
---
diff --git a/mm/Kconfig b/mm/Kconfig
index 3ad483b..e9c0c61 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -179,7 +179,7 @@ config SPLIT_PTLOCK_CPUS
config COMPACTION
bool "Allow for memory compaction"
select MIGRATION
- depends on EXPERIMENTAL && HUGETLB_PAGE && MMU
+ depends on MMU
help
Allows the compaction of memory for the allocation of huge pages.
next prev parent reply other threads:[~2011-01-22 18:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-22 14:48 COMPACTION and TRANSPARENT_HUGEPAGE config warning Luca Tettamanti
2011-01-22 18:38 ` Andrea Arcangeli [this message]
2011-01-23 17:51 ` [PATCH] compaction: don't depend on HUGETLB_PAGE Luca Tettamanti
2011-01-26 8:44 ` 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=20110122183800.GU9506@random.random \
--to=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=kronos.it@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
/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