From: Steve Capper <steve.capper@linaro.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Luck, Tony" <tony.luck@intel.com>,
Zhang Zhen <zhenzhang.zhang@huawei.com>,
Linux MM <linux-mm@kvack.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
"james.hogan@imgtec.com" <james.hogan@imgtec.com>,
"ralf@linux-mips.org" <ralf@linux-mips.org>,
"benh@kernel.crashing.org" <benh@kernel.crashing.org>,
"schwidefsky@de.ibm.com" <schwidefsky@de.ibm.com>,
"cmetcalf@ezchip.com" <cmetcalf@ezchip.com>,
David Rientjes <rientjes@google.com>,
"James.Yang@freescale.com" <James.Yang@freescale.com>,
"aneesh.kumar@linux.vnet.ibm.com"
<aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: [PATCH] mm/hugetlb: reduce arch dependent code about huge_pmd_unshare
Date: Fri, 24 Apr 2015 16:46:27 +0100 [thread overview]
Message-ID: <CAPvkgC2dMzp26-XcYMNVufMiuoAmuKw-hr4kYH27_nARz3gbQg@mail.gmail.com> (raw)
In-Reply-To: <20150423154157.837a378188ef0a703813f206@linux-foundation.org>
Hi,
On 23 April 2015 at 23:41, Andrew Morton <akpm@linux-foundation.org> wrote:
> On Thu, 23 Apr 2015 22:26:18 +0000 "Luck, Tony" <tony.luck@intel.com> wrote:
>
>> > Memory fails me. Why do some architectures (arm, arm64, x86_64) want
>> > huge_pmd_[un]share() while other architectures (ia64, tile, mips,
>> > powerpc, metag, sh, s390) do not?
>>
>> Potentially laziness/ignorance-of-feature? It looks like this feature started on x86_64 and then spread
>> to arm*.
>
> Yes. In 3212b535f200c85b5a6 Steve Capper (ARM person) hoisted the code
> out of x86 into generic, then made arm use it.
I tested the pmd sharing code that x86 had and it worked well on ARM
too so I bundled it in when I generalised some of the huge page code.
I didn't know enough about the other architectures to enable it for
them, so played things safe by leaving it disabled for them.
Looking at this patch, I could have done that more cleanly though.
>
> We're not (I'm not) very good about letting arch people know about such
> things. I wonder how to fix that; does linux-arch work?
>
linux-arch is working for me, maybe a good idea to CC in some arch
maintainers too.
Cheers,
--
Steve
--
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>
prev parent reply other threads:[~2015-04-24 15:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1428996566-86763-1-git-send-email-zhenzhang.zhang@huawei.com>
2015-04-14 7:35 ` Zhang Zhen
2015-04-23 22:11 ` Andrew Morton
2015-04-23 22:26 ` Luck, Tony
2015-04-23 22:41 ` Andrew Morton
2015-04-24 15:46 ` Steve Capper [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=CAPvkgC2dMzp26-XcYMNVufMiuoAmuKw-hr4kYH27_nARz3gbQg@mail.gmail.com \
--to=steve.capper@linaro.org \
--cc=James.Yang@freescale.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=catalin.marinas@arm.com \
--cc=cmetcalf@ezchip.com \
--cc=james.hogan@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux@arm.linux.org.uk \
--cc=ralf@linux-mips.org \
--cc=rientjes@google.com \
--cc=schwidefsky@de.ibm.com \
--cc=tony.luck@intel.com \
--cc=zhenzhang.zhang@huawei.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