CoFS: A Filesystem for Fast Container Startup
Li Wang, Jinxu Du, Yang Yang, Qingbo Wu, Tao Liu, Haoze Wu
Abstract
The running of applications in containers has emerged as a popular trend in the industry. The cold start of a container involves a sequential time-consuming process of image downloading and image unpacking. The high cold-start latency significantly prolongs the startup time of containerized applications and could potentially violate responsiveness SLAs in serverless computing or during service automatic scaling to handle burst requests. To accelerate container startup, state-ofthe-art systems pull the container image on demand. Unfortunately, they suffer from userspace I/O interposition overhead, maintainability, and/or performance fluctuation. This paper presents CoFS, a novel filesystem based on extended FUSE for fast container startup. The insight is that the container image is built only once with a fixed read-only filesystem tree from the perspective of containers. This motivates CoFS to construct a minimal perfect hash function (MPHF) at image building time and to store metadata of files in a container image in a dense array indexed by their hash value. MPHF is collision-free and space-optimal. Leveraging the excellent properties of MPHF, CoFS accomplishes lookup request through less than one single I/O operation in most cases (unless the filename is excessively long) from kernel space, effectively avoiding the costly userspace lookup process in FUSE. Furthermore, CoFS constructs another MPHF that enables parallel lookup based on full path hashing, so as to further accelerate the path resolution. For data access, CoFS leverages sparse files provided by the in-kernel host filesystem to implement fine-grained data caching, and accesses cached data from kernel space. The evaluation shows that CoFS outperforms state-of-the-art systems that achieve fast container startup, and compared to fuse-loopback, a FUSEbased loopback filesystem, the lookup performance improves by up to 86%.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9d6a2084-8f5e-4089-8bbc-a51f7016de9dBuilds on4
- DADI: Block-Level Image Service for Agile and Elastic Application DeploymentHuiba Li, Yifan Yuan, Rui Du, Kai Ma et al.USENIX ATC 2020 · 56 citations
- XFUSE: An Infrastructure for Running Filesystem Services in User SpaceQianbo Huai, Windsor Hsu, Jiwei Lu, Hao Liang et al.USENIX ATC 2021 · 21 citations
- RFUSE: Modernizing Userspace Filesystem Framework through Scalable Kernel-Userspace CommunicationKyu-Jin Cho, Jaewon Choi, Hyungjoon Kwon, Jin-Soo KimFAST 2024 · 9 citations
- FlacIO: Flat and Collective I/O for Container Image ServiceYubo Liu, Hongbo Li, Mingrui Liu, Rui Jing et al.FAST 2025 · 7 citations
Related papers
- RainbowCake: Mitigating Cold-starts in Serverless with Layer-wise Container Caching and SharingHanfei Yu, Rohan Basu Roy, Christian Fontenot, Devesh Tiwari et al.ASPLOS 2024 · 69 citations
- Concurrency-Informed Orchestration for Serverless FunctionsQichang Liu, Yue Cheng, Haiying Shen, Ao Wang et al.ASPLOS 2025 · 7 citations
- FastIOV: Fast Startup of Passthrough Network I/O Virtualization for Secure ContainersYunzhuo Liu, Junchen Guo, Bo Jiang, Yang Song et al.EuroSys 2025 · 5 citations
- Rethinking Process Snapshots for Near-Warm Serverless Cold StartsBen Holmes, Baltasar Dinis, Lana Honcharuk, Adam Belay et al.OSDI 2026
- Meep Hashing: Ultrafast and Compact Minimal Perfect Hashing for Practical Large-Scale Lookup SystemsShouqian Shi, Diancheng Luo, Jacques Liao, Yi Liu et al.SIGMOD 2026
