Ack: [SRU][F/raspi][PATCH 0/1] Large Page support disabled on Raspberry Pi kernels (LP: #1933532)

Marcelo marcelo.cerri at canonical.com
Mon Jan 24 12:58:50 UTC 2022


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


Acked-by: Marcelo Cerri <marcelo.cerri at canonical.com>

Juerg Haefliger <juerg.haefliger at canonical.com> writes:

> Enable hugepages and hugetlb for Focal raspi 5.4 to match the main arm kernels
> and later raspi kernels. This is reasonable given that there are Pi 4 devices
> with up to 8GB of memory.
>
> [ Impact ]
>
> It appears that large page support and transparent hugepages are disabled in config on the Raspberry Pi. It would be nice if they were enabled in the kernel configuration, even if they are disabled by default. Then they could be set in user-editable config via the "transparent_hugepage" boot option.
>
> With 4GB hardware in this family, there might be valid uses for large pages.
>
> root at ubuntu:/home/ubuntu# hugeadm --explain
> hugeadm:ERROR: kernel does not support huge pages
>
> root at ubuntu:/home/ubuntu# lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 20.04.2 LTS
> Release:        20.04
> Codename:       focal
>
> root at ubuntu:/home/ubuntu# uname -a
> Linux ubuntu 5.4.0-1038-raspi #41-Ubuntu SMP PREEMPT Thu Jun 17 14:14:11 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
>
> root at ubuntu:/home/ubuntu# grep -i huge /boot/config-5.4.0-1038-raspi
> CONFIG_SYS_SUPPORTS_HUGETLBFS=y
> CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
> CONFIG_HAVE_ARCH_HUGE_VMAP=y
> # CONFIG_TRANSPARENT_HUGEPAGE is not set
> # CONFIG_HUGETLBFS is not set
>
> [ Test Case ]
>
> See above:
>
> [ Fix ]
>
> Enable HUGETLBFS and TRANSPARENT_HUGEPAGE to match the master kernel and hirsure and later raspi kernels.
>
> [ Where Problems Could Occur ]
>
> Thess configs enable code that is disabled by default. However, there is minimal stub code running at boot so problems would most likely show up as splats during boot or later on when hugetlbfs is explicitly mounted by systemd.
>
> Juerg Haefliger (1):
>   UBUNTU: [Config] raspi: Set HUGETLBFS=y and TRANSPARENT_HUGEPAGE=y
>
>  debian.raspi/config/annotations          |  8 ++++----
>  debian.raspi/config/config.common.ubuntu | 13 +++++++++++--
>  2 files changed, 15 insertions(+), 6 deletions(-)
>
> --
> 2.30.2


- --
Regards,
Marcelo
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEExJjLjAfVL0XbfEr56e82LoessAkFAmHuoqkACgkQ6e82Loes
sAn3ewv+MCbCUIRC7PXRBR2SKnKe+yNgK6+Dd83JgHV37wLpBpN6mr9jtmfdS63j
UxspzsBP2IczrIq10s2ja+650/i3F1khjWpSt99BIwxPiEZkDxDB937Nq9saLjxM
0nQVbjoPnTPbzi36iy+4U6uKlJQ+VU//6pCgzaEU8tnl6l5y2aovqRagQNC98Nny
TGtuZER2Uq+3zg4g9vSIFay8aG5UIiXchgfdi/vbn02ffH79kYLc/7fj89VdI5hm
pv5f+fubRwnX/AHaKOT0yLpqtDLy9R/LBHkqSLpPRNPgl9IGB4F4im2OLzFAekSo
F/vwJEzshwgK/IBolgJaa9EuSqSTYjmJ6FQ6hGmqZ4Mrc56VC7fd1yWYBPPipC2Q
9EgE2vSCS59fgQBT4kqTSgVc8pamHC6EkUVZbaKqX7bAjHDrZtWvGVgCWzU3xBOR
2qDcoEZ2Sl5cJKzb82IoQa5YNKtYAlQu4lr86YaalHXHG0Yd3SfgRxm+XhBauIhh
r/TV1luy
=1Nyv
-----END PGP SIGNATURE-----



More information about the kernel-team mailing list