Erofs advances container efficiency with page cache sharing

The Enhanced Read-Only File System, or EROFS, has introduced page cache sharing to significantly reduce memory usage in containerized environments. This feature allows multiple containers to share cached pages from the same file system image, cutting memory waste by 40% to 60%. Developed initially by Huawei, EROFS is gaining traction in cloud and edge computing scenarios.

Originally created by Huawei for mobile devices, EROFS has evolved into a key tool for container orchestration in cloud and edge settings. The new page cache sharing feature enables multiple instances of identical file system images to share memory caches, avoiding redundant copies that inflate resource demands. In container-heavy workloads, such as those in Kubernetes, this addresses duplicative caching that hampers performance during rapid pod spin-ups.

Kernel contributors, including Hongzhen Luo and Hongbo Li, have driven this development through patch series submitted to the Linux Kernel Mailing List. The latest version, v11, refines earlier prototypes by fixing bugs, adding readahead support, and improving compatibility with fscache mode and anonymous files. These patches build on work from earlier in the year and target integration into kernels from version 5.16 onward, leveraging the folio infrastructure for efficient memory management.

Benchmarks demonstrate clear benefits. Tests with Android container images showed significant memory reductions when sharing caches across mounts. For example, deploying similar TensorFlow containers on one node achieved up to 20% memory savings, while broader container scenarios yielded 40% to 60% cuts during peak loads like boot storms. Phoronix reports highlight improved read throughput alongside lower memory consumption, especially for overlapping data in machine learning workflows.

The 'sharecache' mount option activates this capability, ensuring safe shared access via techniques like copy-on-write. Community discussions on platforms like X praise its potential, with one post noting it could "cut container memory waste by 40-60%," reducing costs for hyperscale operators. Adoption is expanding beyond Huawei, attracting contributors from Alibaba and others, as EROFS competes with systems like SquashFS through superior compression and caching.

Challenges include securing shared caches against data leaks between containers, with maintainers debating edge cases on the mailing list. Future integrations with cgroups and tools like CRI-O or Docker could enhance density in microservices and IoT gateways, promoting sustainable computing in data-intensive environments.

Related Articles

Illustration depicting Linux 7.0 kernel enhancements to AppArmor, AMDGPU, Ceph, and eCryptfs, featuring Tux at a coding workstation.
Image generated by AI

Linux 7.0 kernel merges several enhancements

Reported by AI Image generated by AI

The Linux 7.0 kernel development has incorporated updates to AppArmor, AMDGPU, Ceph, and eCryptfs. These changes include security and hardware support improvements. The merges signal ongoing progress toward the kernel's release.

The XFS filesystem could introduce autonomous self-healing capabilities in the upcoming Linux kernel 7.0. A pull request from XFS maintainer Darrick J. Wong aims to enable real-time reporting of filesystem issues for automatic repairs by userspace programs. This feature builds on new VFS error-reporting tools planned for the same kernel version.

Reported by AI

Elastic Security Labs has detailed the evolution of Linux rootkits in a two-part research series published on March 5, 2026. These modern threats exploit kernel features like eBPF and io_uring to remain hidden in cloud, IoT, and server environments. The research highlights how such rootkits evade traditional detection methods.

This website uses cookies

We use cookies for analytics to improve our site. Read our privacy policy for more information.
Decline