News report

Linux 7.4 Memory Hotplug Optimization Cuts VM Add Time by Up to 81%

A Linux MM optimization queued for 7.4 avoids repeated zone scans, with submitted tests showing large memory hotplug gains for VMs and CXL systems.

On this page
  1. Linux 7.4 is lining up a faster memory-hotplug path
  2. The patch avoids scanning every page block across a zone
  3. CXL makes this kernel path more relevant
  4. The change is queued for Linux 7.4, not yet a released-kernel guarantee

Linux 7.4 is lining up a faster memory-hotplug path

A memory-management optimization led by Intel engineer Yuan Liu has been queued in the Linux MM tree for the Linux 7.4 development cycle. The change targets memory hotplug and hot-unplug, where a running system adds or removes memory without a conventional reboot.

The practical audience is mostly virtualization, large servers and emerging CXL memory configurations rather than ordinary desktop PCs. Those environments can add substantial amounts of memory dynamically, making kernel time spent validating large memory zones visible as operational latency.

The patch avoids scanning every page block across a zone

The optimization changes how Linux checks whether a zone is contiguous during memory hotplug operations. Instead of walking page block by page block across the whole zone for the relevant check, the new path uses zone metadata to avoid that repeated full-zone scan.

That matters more as the zone grows. A check whose cost scales with a very large existing memory range can dominate an operation that is only adding or removing a smaller section of memory.

Submitted memory-hotplug results reported with the patch series
WorkloadReported resultEvidence boundary
Virtual-machine memory hotplugUp to 81% lower operation timePatch-series test result; not a general application-performance gain
Virtual-machine memory hot-unplugUp to 75% lower operation timePatch-series test result; workload and configuration specific
CXL memory hotplugSubstantial reductions reported in Samsung testingPlatform-specific submitted testing; not a consumer-RAM benchmark

CXL makes this kernel path more relevant

Compute Express Link can expose additional memory capacity to systems in configurations where dynamic memory management matters. Samsung testing cited with the work also showed sizeable hotplug improvements for CXL memory, reinforcing that the optimization is aimed at systems where memory capacity can change while the machine remains online.

For conventional consumer desktops with fixed DIMMs, the patch is unlikely to create a noticeable everyday performance change. Its value is concentrated in infrastructure that actually exercises Linux memory hotplug.

The change is queued for Linux 7.4, not yet a released-kernel guarantee

The patch is currently present in the Linux MM tree's for-next branch and is expected to be submitted during the Linux 7.4 merge window. That is a strong upstream staging signal, but it is still different from the code being present in a final Linux 7.4 release.

Until the merge window completes, the defensible status is that the optimization is queued for the 7.4 cycle. Distribution adoption will come later and can vary by kernel version and backport policy.

Sources

Primary and technical sources

These sources support the reporting and analysis above. Current stories are updated when later evidence materially changes the facts.

  1. 01 Linux kernel / mm

    mm/core for-next memory hotplug optimization commit
  2. 02 Phoronix

    Intel Delivers A Significant Memory Hotplugging Performance Optimization For Linux