Lune

EuroSys2021顶会

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

Kaiyang Zhao, Sishuai Gong, Pedro Fonseca

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing 引用了 Designing New Operating Primitives to Improve Fuzzing Performance
  • Serialization/Deserialization-free State Transfer in Serverless Workflows 引用了 No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
  • KIT: Testing OS-Level Virtualization for Functional Interference Bugs 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • KIT: Testing OS-Level Virtualization for Functional Interference Bugs 引用了 Snowboard: Finding Kernel Concurrency Bugs through Systematic Inter-thread Communication Analysis
  • CXLfork: Fast Remote Fork over CXL Fabrics 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • CXLfork: Fast Remote Fork over CXL Fabrics 引用了 Serialization/Deserialization-free State Transfer in Serverless Workflows
  • CXLfork: Fast Remote Fork over CXL Fabrics 引用了 No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing 引用了 Designing New Operating Primitives to Improve Fuzzing Performance
  • No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing 引用了 Designing New Operating Primitives to Improve Fuzzing Performance
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

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

它引用的 Paper6

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

相关 Paper

  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 等VLDB 2023 · 10 次引用
  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 等EuroSys 2023 · 10 次引用
  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 等ASPLOS 2020 · 62 次引用
黄昏的海面,两侧是细线勾勒的悬崖