Linux Memory Reclaim Recovers 48% Instead of 1.9% When Active Objects Are Grouped in Controlled Test

A December 1 research preprint from Northeastern University examines how the arrangement of application objects affects Linux memory recovery: in a controlled experiment, grouping active objects together let the kernel recover 48.0% of charged memory with LZ4 compression, compared with 1.9% when the same 5% active subset was scattered across the allocation. The finding concerns a deliberately constructed workload, not a universal reduction in server memory requirements.

The granularity mismatch

Linux commonly manages memory in 4 KiB pages. An application may instead operate on individual objects just 64 bytes long. An often-accessed object can share a page with many inactive neighbors; the kernel cannot move only the inactive bytes into swap. As our C dynamic allocation lesson explains, application-level allocation and operating-system memory accounting are distinct. Their interaction creates an opportunity for allocator design.

LZ4: 48% grouped versus 1.9% scattered; Zstandard: 66.7% grouped versus 2.6% scattered.
Median of three runs per configuration, 5% active objects. Source: Lin Ju, Figure 3, p. 8.

What the experiment measures

Lin Ju’s 13-page preprint uses a 4 GiB allocation on one Ubuntu 24.04 cloud virtual machine with Linux 7.0. The 36 runs vary object placement, activity fraction, compression algorithm and repetition. The cgroup v2 memory controller requests reclaim, while zswap compresses evicted pages into a RAM cache. Disk writeback was disabled, so the recovered memory represents net compression savings rather than movement to storage.

Samsung 32 GB ECC DDR4 server memory module.
Contextual server memory hardware, not the test machine’s module. Photograph: ITEagle Europe – Sebastiaan Broekhoven, August 3, 2026, CC BY-SA 4.0.

The compression trade-off

At the same 5% active fraction, Zstandard increased the packed-layout saving to 66.7%; the scattered layout recovered only 2.6%. Compression alone cannot resolve mixed activity within pages. The study also reports that aggressively reclaiming beyond the inactive pages produced repeated faults and temporary median loop slowdowns of approximately 1.3–2.7 times baseline, without further net memory recovery.

Red Hat Enterprise Linux, October 18, 2024: hands-on discussion of Linux memory and swap diagnostics. General administration background rather than a reproduction of the experiment. Original source.

Read the original research

Lin Ju, arXiv:2612.02176v1, submitted December 1, 2026. Open or download the original PDF directly. Publisher-hosted document; no local redistribution.

What operators can take from the result

Memory recovery is not a substitute for capacity planning. Monitoring should distinguish net memory recovered, compression overhead, page faults and application response time. The memory hierarchy imposes different costs at each tier, while cache-line contention illustrates another consequence of data placement.

November 23, 2024 Fedora Asahi Remix community announcement describes a separate transition from zram plus swap to zswap; desktop context, not a validation of the new benchmark. Original source.

The research uses a fixed activity pattern, synthetic data and one machine type; moving live objects incurs overhead not measured here. Real applications change access patterns over time. Operators should validate any allocator or reclaim change against representative services, rather than directly copying experimental settings to production. As with data-center workload scheduling, making better use of installed resources requires accounting for performance and the costs of intervention.

Editor’s Note: We volunteer daily to ensure the credibility of the information on this platform is Verifiably True. If you would like to support to help further secure the integrity of our research initiatives, please scan the QR code below

BitcoinVersus.Tech donation QR code for 5,000 satoshis

For mobile scanning, open the article on another display and scan the QR code with a Bitcoin wallet. The voluntary donation amount is 5,000 sats. Verify the receiving address 3C9o19EH5HSiwEPyCTmEKzxhNCbo2X6TTb before sending.

BitcoinVersus.Tech publishes technology and financial journalism for informational purposes and does not provide financial, investment, or legal advice.

2 responses to “Linux Memory Reclaim Recovers 48% Instead of 1.9% When Active Objects Are Grouped in Controlled Test”

  1. […] before retrieving another block from memory. The challenge resembles the locality problem in our Linux memory-reclamation analysis, although the mechanism and performance metrics differ. For computation, good locality can prevent […]

    Like

  2. […] Independent code review, compatibility testing and staged deployment remain necessary. Our Linux benchmark analysis illustrates a related principle: a measured result is only as general as its test […]

    Like

Leave a Reply