Lune

EuroSys2021Top-tier venue

On-demand-fork: a microsecond fork for memory-intensive and latency-sensitive applications

Kaiyang Zhao, Sishuai Gong, Pedro Fonseca

Abstract

Fork has long been the process creation system call for Unix. At its inception, fork was hailed as an efficient system call due to its use of copy-on-write on memory shared between parent and child processes. However, application memory demand has increased drastically since the early days and the cost incurred by fork to simply set up virtual memory (e.g., copy page tables) is now a concern, even for applications that only require hundreds of MBs of memory. In practice, fork performance already holds back system efficiency and latency across a range of uses cases that fork large processes, such as fault-tolerant systems, serverless frameworks, and testing frameworks.

This paper proposes On-demand-fork, a fast implementation of the fork system call specifically designed for applications with large memory footprints. On-demand-fork relies on the observation that copy-on-write can be generalized to page tables, even on commodity hardware. On-demandfork executes faster than the traditional fork implementation by additionally sharing page tables between parent and child at fork time and selectively copying page tables in small chunks, on-demand, when handling page faults. Ondemand-fork is a drop-in replacement for fork that requires no changes to applications or hardware.

We evaluated On-demand-fork on a range of microbenchmarks and real-world workloads. On-demand-fork significantly reduces the fork invocation time and has improved scalability. For processes with 1 GB of allocated memory, On-demand-fork has a 65× performance advantage over Fork. We also evaluated On-demand-fork on testing, fuzzing, and snapshotting workloads of well-known applications, obtaining execution throughput improvements between 59% and 226% and up to 99% invocation latency reduction.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

18 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing cites Designing New Operating Primitives to Improve Fuzzing Performance
  • Serialization/Deserialization-free State Transfer in Serverless Workflows cites No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
  • KIT: Testing OS-Level Virtualization for Functional Interference Bugs cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • KIT: Testing OS-Level Virtualization for Functional Interference Bugs cites Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis
  • CXLfork: Fast Remote Fork over CXL Fabrics cites Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • CXLfork: Fast Remote Fork over CXL Fabrics cites Serialization/Deserialization-free State Transfer in Serverless Workflows
  • CXLfork: Fast Remote Fork over CXL Fabrics cites No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing cites Designing New Operating Primitives to Improve Fuzzing Performance
  • No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing cites Designing New Operating Primitives to Improve Fuzzing Performance
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless ComputingXingda Wei, Fangming Lu, Tianxia Wang, Jinyu Gu et al.OSDI 2023 · 78 citations
  2. Serialization/Deserialization-free State Transfer in Serverless WorkflowsFangming Lu, Xingda Wei, Zhuobin Huang, Rong Chen et al.EuroSys 2024 · 31 citations
  3. Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication AnalysisSishuai Gong, Deniz Altinbüken, Pedro Fonseca, Petros ManiatisSOSP 2021 · 26 citations
  4. KIT: Testing OS-Level Virtualization for Functional Interference BugsCongyu Liu, Sishuai Gong, Pedro FonsecaASPLOS 2023 · 16 citations
  5. CXLfork: Fast Remote Fork over CXL FabricsChloe Alverti, Stratos Psomadakis, Burak Ocalan, Shashwat Jaiswal et al.ASPLOS 2025 · 14 citations

Builds on6

  1. kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel et al.USENIX Security 2017 · 324 citations
  2. Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang et al.ASPLOS 2020 · 280 citations
  3. Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided TracingStefan Nagy, Matthew HicksS&P 2019 · 156 citations
  4. Designing New Operating Primitives to Improve Fuzzing PerformanceWen Xu, Sanidhya Kashyap, Changwoo Min, Taesoo KimCCS 2017 · 139 citations
  5. FuZZan: Efficient Sanitizer Metadata Design for FuzzingYuseok Jeon, Wookhyun Han, Nathan Burow, Mathias PayerUSENIX ATC 2020 · 52 citations

Related papers

  1. Async-fork: Mitigating Query Latency Spikes Incurred by the Fork-based Snapshot Mechanism from the OS LevelPu Pang, Gang Deng, Kaihao Bai, Quan Chen et al.VLDB 2023 · 10 citations
  2. μFork: Supporting POSIX fork Within a Single-Address-Space OSJohn Alistair Kressel, Hugo Lefeuvre, Pierre OlivierSOSP 2025
  3. Nephele: Extending Virtualization Environments for Cloning Unikernel-based VMsCostin Lupu, Andrei Albisoru, Radu Nichita, Doru-Florin Blânzeanu et al.EuroSys 2023 · 10 citations
  4. Every Mapping Counts in Large Amounts: Folio AccountingDavid Hildenbrand, Martin Schulz, Nadav AmitUSENIX ATC 2024
  5. Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory MachinesReto Achermann, Ashish Panwar, Abhishek Bhattacharjee, Timothy Roscoe et al.ASPLOS 2020 · 62 citations
Dusk over the sea between two cliffs drawn in fine vertical lines