From: Marc Zyngier <maz@kernel.org>
To: Zhou Wang <wangzhou1@hisilicon.com>
Cc: <linux-arm-kernel@lists.infradead.org>, <kvmarm@lists.linux.dev>,
<tangnianyao@huawei.com>, jiangkunkun <jiangkunkun@huawei.com>,
"xuwei\ (O)" <xuwei5@huawei.com>,
"Zengtao (B)" <prime.zeng@hisilicon.com>
Subject: Re: Question about ARM KVM stage2 contiguous bit support for contiguous hugetlb
Date: Fri, 13 Mar 2026 07:49:30 +0000 [thread overview]
Message-ID: <87qzpocgol.wl-maz@kernel.org> (raw)
In-Reply-To: <704b6126-f1ad-4d8a-5709-a12e4c8c79ca@hisilicon.com>
On Fri, 13 Mar 2026 07:09:40 +0000,
Zhou Wang <wangzhou1@hisilicon.com> wrote:
>
> And do we have any plan to support this?
Not really.
Configurations that are looking at extracting the best possible
performance use large mappings at S2 (hugetlbfs). I'm not convinced
that there is a strong use-case for dealing with the contiguous hint
at S2 when backed by anonymous memory. If you're not under memory
pressure, THP already gives you the uplift you want. If you are under
memory pressure, you're unlikely to get the contiguity you want.
Additionally, dealing with the contiguous hint is a real pain.
If you are undertaking this work, please make sure to provide
reproducible benchmarks and results that show a definite improvement
on the majority of workloads.
Thanks,
M.
--
Jazz isn't dead. It just smells funny.
next prev parent reply other threads:[~2026-03-13 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 7:09 Question about ARM KVM stage2 contiguous bit support for contiguous hugetlb Zhou Wang
2026-03-13 7:49 ` Marc Zyngier [this message]
2026-03-19 12:54 ` Zhou Wang
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=87qzpocgol.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=jiangkunkun@huawei.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=prime.zeng@hisilicon.com \
--cc=tangnianyao@huawei.com \
--cc=wangzhou1@hisilicon.com \
--cc=xuwei5@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