From: Yisheng Xie <xieyisheng1@huawei.com>
To: akpm@linux-foundation.org
Cc: guohanjun@huawei.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, will.deacon@arm.com,
mhocko@suse.com, dave.hansen@intel.com, sudeep.holla@arm.com,
catalin.marinas@arm.com, mark.rutland@arm.com,
robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org,
mike.kravetz@oracle.com, n-horiguchi@ah.jp.nec.com,
hillf.zj@alibaba-inc.com, dingel@linux.vnet.ibm.com,
sfr@canb.auug.org.au,
kirill.shutemov@linux.intel.comsudeep.holla@arm.com
Subject: Re: [RFC PATCH] arm64/hugetlb enable gigantic hugepage
Date: Fri, 19 Aug 2016 17:49:38 +0800 [thread overview]
Message-ID: <68b492dc-06ea-dd33-2197-1f4b71d36072@huawei.com> (raw)
In-Reply-To: <1471521929-9207-1-git-send-email-xieyisheng1@huawei.com>
add more,
hi all,
Could anyone do me a favor and give some comments?
Thanks
Xie Yisheng
On 2016/8/18 20:05, Xie Yisheng wrote:
> As we know, arm64 also support gigantic hugepage eg. 1G.
> So I try to use this function by adding hugepagesz=1G
> in kernel parameters, with CONFIG_CMA=y.
> However, when:
> echo xx > /sys/kernel/mm/hugepages/hugepages-1048576kB/
> nr_hugepages
> it failed with the info:
> -bash: echo: write error: Invalid argument
>
> This patch make gigantic hugepage can be used on arm64,
> when CONFIG_CMA=y or other related configs is enable.
>
> Signed-off-by: Xie Yisheng <xieyisheng1@huawei.com>
> ---
> mm/hugetlb.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/mm/hugetlb.c b/mm/hugetlb.c
> index 87e11d8..b4d8048 100644
> --- a/mm/hugetlb.c
> +++ b/mm/hugetlb.c
> @@ -1022,7 +1022,8 @@ static int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed)
> ((node = hstate_next_node_to_free(hs, mask)) || 1); \
> nr_nodes--)
>
> -#if (defined(CONFIG_X86_64) || defined(CONFIG_S390)) && \
> +#if (defined(CONFIG_X86_64) || defined(CONFIG_S390) || \
> + defined(CONFIG_ARM64)) && \
> ((defined(CONFIG_MEMORY_ISOLATION) && defined(CONFIG_COMPACTION)) || \
> defined(CONFIG_CMA))
> static void destroy_compound_gigantic_page(struct page *page,
>
--
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:[~2016-08-19 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 12:05 Xie Yisheng
2016-08-19 9:49 ` Yisheng Xie [this message]
2016-08-19 10:25 ` Michal Hocko
2016-08-19 11:08 ` Yisheng Xie
2016-08-19 11:21 ` Michal Hocko
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=68b492dc-06ea-dd33-2197-1f4b71d36072@huawei.com \
--to=xieyisheng1@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=catalin.marinas@arm.com \
--cc=dave.hansen@intel.com \
--cc=dingel@linux.vnet.ibm.com \
--cc=guohanjun@huawei.com \
--cc=hillf.zj@alibaba-inc.com \
--cc=kirill.shutemov@linux.intel.comsudeep.holla \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mark.rutland@arm.com \
--cc=mhocko@suse.com \
--cc=mike.kravetz@oracle.com \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=robh+dt@kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=sudeep.holla@arm.com \
--cc=will.deacon@arm.com \
/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