Skip to content

Graviton arm64 / aarch64 EC2 instance types with 64k pagesize?

0

I remember that at least some arm64 / aarch64 Graviton 1 instance types in the past used 64k pagesize by default instead of the 4k Linux standard on x86_64 / amd64. But now at least Graviton 3 m7g use 4k as visible with getconf PAGESIZE on the console.

Which current Graviton instances offer 64k pagesize?

The question is in the context of running general performance tests, not for a specific use case.

asked 2 years ago1.4K views
3 Answers
1
Accepted Answer

Graviton, Graviton2, and Graviton3 series, typically support multiple pagesize configurations, but the default pagesize set at the OS level can vary depending on the specific EC2 instance type and the operating system image used.

Historically, some of the earlier AWS Graviton processors (like those based on the first-generation Graviton) used a 64k pagesize by default. However, more recent Graviton2 and Graviton3 processors generally default to a 4k pagesize, which is more common and widely supported across various Linux distributions. This shift aligns with a broader compatibility and performance optimization across a wider range of applications.

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • Thanks, that solves my question!

    In case anyone later sees a Graviton 3 or 4 instance with 64k pagesize, please reply here. I started so far: Amazon Linux 2023 m7g and RHEL 8 m7g and those were 4k.

    I remember that I once had a standard Oracle Linux 7.9 installation disk image which only had 64k pagesize kernels, but that was not on EC2.

1

For more info about changing between 4k and 64k pages on Graviton refer to https://learn.arm.com/learning-paths/servers-and-cloud-computing/arm_linux_page_size/

answered 2 months ago
  • Tried that now and indeed it works fine now with 64k. Pretty simple for a Graviton Ubuntu instance for example, just "sudo apt install linux-aws-64k" and reboot.

1

As stated above, it depends on the Linux distribution providing a Linux kernel that is compiled with the base page size as 64kB instead of the more common 4kB. All Graviton instances support either base page size. Ubuntu is now offering some kernel builds built with the base page size of 64kB as an option, https://ubuntu.com/server/docs/choosing-between-the-arm64-and-arm64-largemem-installer-options, but does not appear that its an option in either AWS AMIs or via apt at the moment.

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.