The Linux Kernel Is Preparing To Enable 5-Level Paging By Default
Written by Michael Larabel in Intel on 14 September 2019 at 10:47 AM EDT. 44 Comments
INTEL --
While Intel CPUs aren't shipping with 5-level paging support, they are expected to be soon and distribution kernels are preparing to enable the kernel's functionality for this feature to extend the addressable memory supported. With that, the mainline kernel is also looking at flipping on 5-level paging by default for its default kernel configuration.

Intel's Linux developers have been working for several years on the 5-level paging support for increasing the virtual/physical address space for supporting large servers with vast amounts of RAM. The 5-level paging increases the virtual address space from 256 TiB to 128 PiB and the physical address space from 64 TiB to 4 PiB. Intel's 5-level paging works by extending the size of virtual addresses to 57 bits from 48 bits.

The 5-level paging support for the Linux kernel has been largely settled on recent kernel versions in preparation for Intel hardware supporting this functionality. The CONFIG_X86_5LEVEL option though hasn't been enabled by default but now it's likely to be in an upcoming kernel release.

Per this patch enabling 5-level paging by default, that should soon land. But there are concerns remaining over a performance impact of the 5-level code on 4-level hardware and possible implications of 5-level paging on 5-level hardware when that extended physical/virtual address space isn't needed.

The Intel developers believe that the performance regressions previously discovered with this code have been addressed, so it's likely to be flipped on soon, we'll see at that point if any other performance issues come up.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week