News: 0001475836

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux Looking To Make 5-Level Paging Support Unconditional For x86_64 Kernel Builds

([Linux Kernel] 2 Hours Ago 5-Level Paging On AMD / Intel)


It's been nearly one decade since Intel began [1]working on 5-level paging support for the Linux kernel to allow for greater virtual and physical address space with expanding memory sizes. The 5-level paging kernel-side bits were [2]upstreamed back in Linux 4.12 in 2017 and [3]enabled by default since 2019 with Linux 5.5. Intel CPUs for a while (since Ice Lake) have supported 5-level paging and [4]AMD CPUs too since Zen 4. The Linux kernel may move to unconditionally enabling 5-level paging support for x86_64 kernel builds.

Intel is moving along to unconditionally enable [5]5-level paging support within the Linux kernel. This is about extending the virtual address size from 48 to 57 bits to allow up to 128PB of virtual memory.

[6]This patch series sent out recently by Intel engineer Kirill Shutemov aims to remove the "CONFIG_X86_5LEVEL" Kconfig build-time option and simply have 5-level paging always enabled for new x86_64 kernel builds.

"Both Intel and AMD CPUs support 5-level paging, which is expected to become more widely adopted in the future.

Remove CONFIG_X86_5LEVEL.

In preparation to that remove CONFIG_DYNAMIC_MEMORY_LAYOUT and make SPARSEMEM_VMEMMAP the only memory model."

In practice this doesn't mean a whole lot with most Linux distribution vendor kernels shipping with CONFIG_X86_5LEVEL enabled, but it's one less knob and a sign of the times with catering more of the upstream kernel to modern hardware needs.



[1] https://www.phoronix.com/news/Intel-5-Level-Paging

[2] https://www.phoronix.com/news/Intel-5-LVL-Paging-4.12-MM

[3] https://www.phoronix.com/news/Linux-5.5-5-Level-Paging

[4] https://www.phoronix.com/news/AMD-5-Level-Paging-KVM

[5] https://www.phoronix.com/search/5-level+paging

[6] https://lore.kernel.org/lkml/20240621164406.256314-1-kirill.shutemov@linux.intel.com/



phoronix

What they say: What they mean:

New Different colors from previous version.
All New Not compatible with previous version.
Exclusive Nobody else has documentation.
Unmatched Almost as good as the competition.
Design Simplicity The company wouldn't give us any money.
Fool-proof Operation All parameters are hard-coded.
Advanced Design Nobody really understands it.
Here At Last Didn't get it done on time.
Field Tested We don't have any simulators.
Years of Development Finally got one to work.
Unprecedented Performance Nothing ever ran this slow before.
Revolutionary Disk drives go 'round and 'round.
Futuristic Only runs on a next generation supercomputer.
No Maintenance Impossible to fix.
Performance Proven Worked through Beta test.
Meets Tough Quality Standards It compiles without errors.
Satisfaction Guaranteed We'll send you another pack if it fails.
Stock Item We shipped it before and can do it again.