From: Andreas Schaufler <andreas.schaufler@gmx.de>
To: linux-arm-msm@vger.kernel.org
Subject: HugeTLB on ARM64
Date: Sun, 1 Mar 2020 16:55:10 +0100 [thread overview]
Message-ID: <f994797a-96ad-ba51-9e93-e4c4e34d24d5@gmx.de> (raw)
Dear all,
I am working on a project based on a A53 SoC. The goal is for the CPU to
receive and process data. I am running vanilla 5.4.9.
Benchmarking memory performance shows improvements when using HugeTLBs.
I managed to run with 4K base pages and 2MB Huge
Pages specifying on the kernel command line how many pages to allocate,
i.e. hugepages=512 default_hugepagesz=2m hugepagesz=2m.
The ARM64 when using 4K pages should also support 1G Huge Pages.
However, when specifying this:
hugepages=1 default_hugepagesz=1G hugepagesz=1G
I see the size properly taken into account in /proc/meminfo, but it does
not manage to allocate them:
# cat /proc/meminfo
…..
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 1048576 kB
Hugetlb: 0 kB
There is enough memory on the board. For instance if I declare a CMA
area of 1G in the device tree it manges to reserve it properly at
0x40000000. Of course I remove CMA reservation when defining 1G Huge Pages.
I am looking for the reason why this would fail, but I am not
successful. Any hints will be highly appreciated.
Thanks a lot and best regards
Andreas
reply other threads:[~2020-03-01 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=f994797a-96ad-ba51-9e93-e4c4e34d24d5@gmx.de \
--to=andreas.schaufler@gmx.de \
--cc=linux-arm-msm@vger.kernel.org \
/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