The Jerusalem PostRussia expands its rival satellite network to Musk's Starlink with an eye on UkraineDaily MaverickAfter The Bell: When AI comes for encryption, even the maths-phobic should recalculateDeadlineAFI Awards TV Top 10: ‘The Pitt’, ‘Widow’s Bay’ & ‘DTF St. Louis’ Among HonoreesColliderNetflix’s 'Pride and Prejudice' Gets Official New Release on Launch DayThe Straits TimesFrom quantum labs to tea brands: Why global firms are setting up in Singapore, and the jobs they plan to bringVarietyAFI Top 10: ‘Disclosure Day,’ ‘I Play Rocky’ and ‘Cliff Booth’ Among Surprise Film Entries; TV List Honors New Shows ‘Furious’ and ‘Cupertino’TechCrunchThe most important indicator in AI hasn’t turned red yetCBS NewsMayor of Mexican "Hamptons" arrested in extortion probe3DNewsDeepSeek готова закрывать доступ к самым мощным ИИ-моделям — безопасность важнее открытостиBBC NewsKing Charles and Idris Elba to appear as double act for charity filmPremium TimesHURMA, Somolu LGA partner to advance disability rights amid persistent discriminationGuardian SportTottenham Hotspur v Fulham: Premier League – live
The Daily Newsstand · Free, Always
Thursday, December 3, 2026
Articles in other languages open automatically in English.Articles in other languages will open automatically in English, translated by Google Translate.

You are reading Joho no Todai on KioskNews: newspapers from many countries on one stand, each linked to its original. What other papers report

Linux Extmem Proposal Carves Out Physical Memory at Boot and Preserves It Across Kernel Updates

Translate

The more RAM Linux manages as ordinary memory, the more space it needs to keep track of physical pages. If most of a server's memory is set aside for virtual machines, how much of it does the host OS need to manage?

On December 2, 2026, a Google developer proposed Extmem, a new memory management feature for the Linux kernel. On both x86-64 and Arm64, it separates memory the host OS treats as ordinary RAM from memory allocated to dedicated uses at boot. The developer published an 11-patch series for feedback.

Linux manages ordinary RAM in units called pages and keeps information for managing each one. According to the developer, with 4 KiB pages and conventional reservation methods, boot-time page metadata takes about 16 MiB per GiB of memory.

For example, reserving memory with cma= or reserve_mem= still leaves that region under ordinary physical memory management. Extmem sets aside dedicated regions before allocating boot-time page metadata.

If a dedicated driver manages memory for virtual machines, the host OS can allocate less page metadata at boot. The interesting idea is that the system can spend less memory managing its RAM by accounting for how the RAM is used, with the same amount of physical memory installed.

Leaving RAM for the host on each NUMA node

Memory allocation on large servers needs to account for non-uniform memory access (NUMA). Linux groups memory and CPUs into NUMA nodes. Access to memory on a node near the CPU is generally faster than access to memory on a distant node.

Reserving a large region by physical address alone can leave a particular node without enough memory for the host OS. The developer explains that the x86-specific memmap= option cannot account for NUMA node boundaries or regions reserved by firmware. EFI Soft Reserved memory requires firmware configuration on each server. With methods that take memory out of normal management after boot, the developer says there is no guarantee of a physically contiguous 1 GiB region once early allocations have been made.

Extmem uses the extmem= boot parameter to specify the target nodes, how much memory to carve out, the alignment of the regions, and the minimum amount to leave for the host OS.

The test setting extmem=all:max:1G:keep=32G leaves at least 32 GiB on every node with RAM. It carves out as much available memory as possible at physical addresses of 4 GiB or higher, aligned to 1 GiB boundaries. The aim is to allocate memory by node without specifying physical addresses separately for each machine.

The carved-out regions appear separately from ordinary RAM in /proc/iomem. The design allows existing DAX (direct access) drivers to expose them as devices for virtual machines and other uses, and it also provides for exposing them as block devices for file systems. In the latter case, DAX allows reads and writes without an extra copy into the page cache.

Memory reserved at boot fell on two servers

The December 2 request for comments (RFC) included tests on physical x86-64 and Arm64 servers.

A 768 GiB server with an Intel Xeon Platinum 8581C had two NUMA nodes. The test set aside 350 GiB from one and 351 GiB from the other, for a total of 701 GiB of Extmem. Ordinary host RAM on the two nodes stood at 33.1 GiB and 32.3 GiB. Memory reserved at boot fell from 12.20 GiB to 1.25 GiB, a reduction of 10.95 GiB, or about 89.8%.

On a 256 GiB server with an Arm-based Ampere Altra, the test set aside 223 GiB. Memory reserved at boot fell from 4.84 GiB to 1.03 GiB, a reduction of 3.81 GiB, or about 78.7%.

The tests measured memory reserved at boot under conditions that sharply limited how much the host OS treated as ordinary RAM. The benefit is reserving large regions for dedicated use while reducing space spent managing physical pages. How much the host needs depends on the actual workload.

Preserving physical memory across kernel switches

The developer identified kernel updates on hosts running virtual machines as a use case for Extmem.

Linux provides Kexec HandOver (KHO) to carry over memory state during kexec, when a running kernel switches to another. It records information the updated kernel will need and the memory regions it should keep so the new kernel can restore state. There has also been a proposal to use binary search in the early boot memory manager memblock for looking up the regions KHO hands over.

Extmem takes regions out of normal memory management at boot, so they are handled differently from the ordinary pages KHO already tracks. On the first boot, the requested size determines what memory to set aside. The next kernel needs to know the regions' actual physical addresses if it is to recreate what the previous kernel reserved.

The Extmem patch for KHO support hands over each region's starting address, size, NUMA node number, and alignment. The new kernel uses that information to take those regions out of normal memory management before regular page allocation begins.

The handover must preserve both the location and the contents in physical memory. Instead of registering every page of a dedicated region with KHO's page tracking, the patch saves descriptors for the regions so their data can stay in place. On both x86-64 and Arm64, the developer verified that the contents of carved-out regions were preserved byte for byte after a KHO kernel switch.

Preserving memory contents is one requirement for maintaining a virtual machine's state. Resuming execution after a kernel switch also requires restoring the virtual machine's other state. Extmem handles the retention of the carved-out physical memory.

Developers discuss boot order and a common implementation

Some developers who agreed that Linux needs a general way to carve out memory questioned the choice of a kernel boot parameter. Others suggested leaving the regions unmapped from the start instead of mapping them at boot and unmapping them later.

Developers also raised concerns about adding special handling for KHO to the kernel's memory management code. One asked whether the existing mechanism for taking regions out of normal memory management after boot could be improved to meet the need.

In a December 3 reply, the developer outlined three requirements: use a common approach across CPU architectures without changing the firmware on each machine, account for NUMA without fixed physical addresses, and preserve the carved-out regions through KHO.

On x86-64 and Arm64, the kernel's virtual addresses are mapped to physical memory before the NUMA layout is known, so the proposed implementation unmaps the regions later. The developer asked whether NUMA discovery could happen first and expressed interest in approaches that would avoid adding KHO handling to core memory management.

The boot-time memory layout also affects the design. On a normal x86-64 boot, placing the kernel image or page tables at physical addresses of 4 GiB or higher can make it harder to reserve contiguous regions. The proposal includes a change that, on normal boots with Extmem enabled, gives priority to placement below 4 GiB when searching for physical kernel address space layout randomization (KASLR) candidates. It falls back to the usual range if there is no suitable candidate and leaves virtual address randomization as it was.

How should the results of tests on a narrowly defined workload become a common Linux kernel feature that works across different machines and uses? That discussion has begun at the RFC stage.

The ability to install more memory expands what a server can do. How much of that memory should the host OS manage, and which regions should survive into the next kernel? Extmem offers a reason to revisit how memory is used as well as how much is installed.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.