[PATCH] dts: Change hugepage runtime config to 2MB Exclusively
Morten Brørup
mb at smartsharesystems.com
Sat Apr 6 10:47:48 CEST 2024
> From: Nicholas Pratte [mailto:npratte at iol.unh.edu]
> Sent: Thursday, 4 April 2024 17.31
>
> The previous implementation configures and allocates hugepage sizes
> based on a system default. This can lead to two problems: overallocation
> of
> hugepages (which may crash the remote host), and configuration of
> hugepage
> sizes that are not recommended during runtime. This new implementation
> allows only 2MB hugepage allocation during runtime; any other unique
> hugepage size must be configured by the end-user for initializing DTS.
>
> If the amount of 2MB hugepages requested exceeds the amount of 2MB
> hugepages already configured on the system, then the system will remount
> hugepages to cover the difference. If the amount of hugepages requested
> is
> either less than or equal to the amount already configured on the
> system,
> then nothing is done.
>
> Bugzilla ID: 1370
> Signed-off-by: Nicholas Pratte <npratte at iol.unh.edu>
> Reviewed-by: Jeremy Spewock <jspewock at iol.unh.edu>
> ---
This change seems very CPU specific.
E.g. in x86 32-bit mode, the hugepage size is 4 MB, not 2 MB.
I don't know the recommended hugepage size on other architectures.
More information about the dev
mailing list