BLAFS: A Bloat-Aware Container File System
Paper in proceeding, 2026

Containers have become the standard for deploying applications in many cloud systems due to its convenience. However, this convenience leads to significant container bloat, i.e., unused files that inflate container image sizes, increase provisioning times, waste resources and introduce security vulnerabilities. Bloat is particularly problematic in serverless and edge computing scenarios, where resources are constrained, and performance is critical, and for microservice applications where rapid scaling is key to meet performance targets. However, existing container debloating tools are often limited in both effectiveness and robustness. In this paper, we propose BLAFS, a bloat-aware container filesystem that removes bloat while guaranteeing the correct operation of the debloated containers. BLAFS addresses bloat at the filesystem level by introducing new layers in the filesystem to enable debloating. During runtime, accessed files are moved to the debloating layers, and then similar to garbage collection mechanisms, BLAFS removes files that are not accessed during runtime. An optional reloading layer fetches files from a remote cloud cache on-demand if the files are mistakenly removed. We discuss how BLAFS can be used in different deployment scenarios and for different use-cases including container security-hardened and a dynamic deployment mode where the target is improved provisioning performance. We evaluate BLAFS performance using the top 20 downloaded containers from DockerHub, four ML containers, and SEBS, a Serverless Benchmark containing 10 serverless functions and compare its performance against two state-of-the-art debloating tools. Our evaluation shows that BLAFS reduces container sizes by up to 95% and cold-starts by up to 68%. In the security-hardened mode, BLAFS removes up to 89% of CVEs while the two state-of-the-art debloating tools fail on most of the workloads. We identify their limitations, and show how BLAFS provides a more principled approach to debloating. Additionally, when combined with lazy-loading snapshotters, BLAFS improves provisioning efficiency, reducing conversion times by up to 93% and provisioning times by up to 19%.

File System

Serverless Computing

Software Bloat

Container

Cloud Computing

Author

Huaifeng Zhang

Chalmers, Computer Science and Engineering (Chalmers), Computer and Network Systems

University of Gothenburg

Mohannad Alhanahnah

University of Wisconsin Madison

Philipp Leitner

Chalmers, Computer Science and Engineering (Chalmers), Interaction Design and Software Engineering

University of Gothenburg

Ahmed Ali-Eldin Hassan

University of Gothenburg

Chalmers, Computer Science and Engineering (Chalmers), Computer and Network Systems

Socc 2025 Proceedings of the 2025 ACM Symposium on Cloud Computing

614-628
9798400722769 (ISBN)

2025 ACM Symposium on Cloud Computing, SoCC 2025
Virtual, Online, USA,

Subject Categories (SSIF 2025)

Software Engineering

Computer Engineering

Computer Systems

DOI

10.1145/3772052.3772263

More information

Latest update

2/5/2026 9