Meta Demonstrates CRAM Memory Compression Solution: Read-Only Performance Close to Native DRAM, Exploring Alternatives ZRAM
The Block
1h ago
Ai Focus
Engineers at Meta demonstrated an experimental memory compression solution on Linux Plumbers Conference 2026 called CRAM. This solution does not simply replace ZRAM or zswap, but rather allows compressed data to continue to exist in the form of "memory" in order to reduce the software overhead associated with traditional Swap paths; official documentation claims that it can achieve performance close to that of native DRAM in TAOBench and FIO benchmark tests.
Helpful
No.Help

News from the IT community on October 8th: Engineers from Meta presented an experimental memory compression solution named CRAM at the Linux Plumbers Conference 2026 ( LPC 2026) event held in Prague, Czech Republic, on October 5th.

The goal of this solution is not simply to replace ZRAM or zswap, but rather to allow the compressed data to continue to exist in the form of "memory," thereby avoiding the software overhead associated with the traditional Swap path. Official LPC documentation indicates that CRAM has already completed actual testing and can achieve performance close to that of the native DRAM in the TAOBench and FIO benchmark tests.

As is well known, the common memory compression schemes for Linux currently include ZRAM and zswap. ZRAM creates compressed block devices in memory, and the kernel needs to process the data within them according to the Swap path; however, CRAM is designed differently. Compressed data can still maintain page table mappings and page cache states, and it supports Cacheline and Byte level access. Therefore, when reading data, there is no need to trigger a software decompression process through a page fault exception as with traditional schemes. LPC official documentation states that this is also a key feature that distinguishes CRAM from ZRAM and zswap.

The core idea of CRAM is to provide the compressed hardware memory as a special type of NUMA memory to Linux, rather than simulating it as a block storage device.

According to the information, CRAM utilizes a strictly controlled private NUMA node, which allows the kernel to continue using the existing memory management mechanisms, including memory migration, recycling, downgrading, the memory balloon mechanism, free page reporting, and NUMA memory balancing, among others.

This design is aimed at addressing the software path overhead in traditional memory compression schemes. For read-only data, CRAM can be directly read from the compressed memory without the need to first transfer the data to regular memory and then decompress it. In this mode, the performance of CRAM can approach that of the native DRAM.

According to the test data disclosed in this demonstration, in a pure read scenario, CRAM can achieve approximately 489 million operations per second in the worst-case scenario, while ZRAM can perform about 1.1 million operations per second. Based on these figures, the difference between the two is about 444 times, not 452 times. Therefore, the official claim of a "452-fold improvement" may only be achievable in an ideal environment.

When the workload includes write operations, the advantages of CRAM become significantly reduced. Since compressed data cannot be modified in place, during writing, it is necessary to use page-out processing to migrate the corresponding Folio back to the native NUMA node before making any modifications.

Even so, in the worst-case scenario described in the material, CRAM still achieves approximately 5.4 times the performance of ZRAM. However, this figure should also be understood as a result of a specific benchmark test, rather than a general conclusion regarding performance.

According to official information, CRAM is still in the stage of a tested kernel service prototype and has not yet become a mature feature part of the Linux mainline.

An engineer, as mentioned by Gregory Price, stated that most of the kernel fundamental mechanisms required to implement CRAM already exist. What needs to be further addressed at present is how to make memory devices with "inconsistent actual capacity and physical capacity" comply with Linux's existing memory model.

IT Home Reminder: Currently, CRAM is still in the research and development and community discussion phase and cannot yet be considered a formal feature set to be integrated into the mainline of Linux. The focus of this public release is to explore how to utilize the existing Linux memory management mechanism to support this new type of compressed memory, rather than to announce a product that has already undergone standardization or commercial deployment.

Tip
$0
Like
0
Save
0
Views 26
WalletJYS reminds readers to view blockchain rationally, stay aware of risks, and beware of virtual token issuance and speculation. All content on this site represents market information or related viewpoints only and does not constitute any form of investment advice. If you find sensitive content, please click“Report”,and we will handle it promptly。
Submit
Comment 0
Hot
Latest
No comments yet. Be the first!
Related
ACEMAGIC F9A Mini Workstation PRO 495 + 192GB + 2TB model launched, with an initial price of 49,998 yuan
ACEMAGIC has been launched on domestic e-commerce platforms. F9A Mini Host Workstation. AMD Ryzen AI Max + PRO 495 processor version, equipped with 192GB of memory and 2TB of storage, priced at 50,999 yuan, with a special launch price of 49,998 yuan. This model supports configuring 160GB of memory as video memory, allowing for the local execution of 300B parameters LLM.
The Block
·2026-10-08 13:40:41
9
24X National Exchange Plans to Expand Warrant Performance Incentive Plan
24X National Exchange indicates that a rule change has been submitted to SEC, with the intention of expanding the performance incentive plan for warrants in order to enhance the liquidity and trading volume during extended trading hours.
PR Newswire
·2026-10-08 13:32:32
12
The first large-model native intelligent agent smartphone from Step Terminal, STEPX Neo, is scheduled for release on October 13th. See you then!
Step Terminal's official WeChat account announced that the first large-model native intelligent agent phone, STEPX Neo, will be officially released on October 13th at 19:00. The article also mentioned that this device has previously completed the registration for the on-device generative AI service and made its debut at the 2026 World Artificial Intelligence Conference, supporting deep integration with applications such as Lark.
The Block
·2026-10-08 12:40:57
24
Bitcoin Falls Below $83,000; Reports on Iran's Strike Plans Drive Up Oil Prices
Bitcoin falls below $83,000, and FxPro says this may open the way for a rapid drop to $80,000. Affected by reports that the White House has asked the Pentagon to provide options for strikes against Iran, Brent crude oil rose above $102, and U.S. Treasury yields also returned to near their highest levels since 2002, putting pressure on cryptocurrencies and global stock markets.
CoinDesk
·2026-10-08 12:11:20
34
View More