μFork:在单地址空间操作系统中支持 POSIX fork
μFork: Supporting POSIX fork Within a Single-Address-Space OS
AI总结:
提出单地址空间操作系统设计μFork,利用CHERI技术解决指针重定位与隔离挑战,在现代硬件上高效支持POSIX fork,在轻量级指标上显著优于传统系统。
摘要:
单地址空间操作系统具有众所周知的轻量级优势,这源于其核心设计理念:内核和应用程序共享一个唯一的地址空间。这种模型使得这些操作系统(OSes)在设计上与一大类软件不兼容:多进程 POSIX 应用程序。事实上,用于创建 POSIX 进程的原语 fork 的语义,与多个地址空间的存在有着密不可分的联系。以往解决此问题的方法在轻量级、兼容性和/或隔离性之间进行权衡。我们提出了 μFork,这是一种单地址空间操作系统设计,在现代硬件上支持 POSIX fork,且不妥协于这些关键目标中的任何一个。μFork 模拟 POSIX 进程(μprocesses),并通过在单地址空间内的不同位置为子进程创建父 μprocess 内存的副本来实现 fork。这种方法面临两个挑战:重定位子进程的绝对内存引用(指针),以及在不影响轻量级的前提下提供用户/内核和 μprocesses 之间的隔离。我们使用 CHERI 来解决这些问题。我们实现了 μFork,并在三个真实世界用例上进行了评估:Redis 快照、Nginx 多工作者部署,以及 Zygote FaaS 工作者预热。μFork 在关键轻量级指标上比以往工作和传统宏内核操作系统快一个数量级,例如,它能提供比宏内核操作系统高 24% 的受 fork 限制的 FaaS 函数吞吐量,并能在 54μs 内 fork 一个 μprocess,比传统 fork 快 3.7 倍。
英文摘要:
Single-address-space operating systems have well-known lightweightness benefits that result from their central design idea: the kernel and applications share a unique address space. This model makes these operating systems (OSes) incompatible by design with a large class of software: multiprocess POSIX applications. Indeed, the semantics of the primitive used to create POSIX processes, fork, are inextricably tied to the existence of multiple address spaces. Prior approaches addressing this issue trade off lightweightness, compatibility and/or isolation. We propose μFork, a single-address-space operating system design supporting POSIX fork on modern hardware without compromising on any of these key objectives. μFork emulates POSIX processes (μprocesses) and achieves fork by creating for the child a copy of the parent μprocess' memory at a different location within a single address space. This approach presents two challenges: relocating the child's absolute memory references (pointers), as well as providing user/kernel and μprocesses isolation without impacting lightweightness. We address them using CHERI. We implement μFork and evaluate it upon three real-world use-cases: Redis snapshots, Nginx multi-worker deployments, and Zygote FaaS worker warm-up. μFork outperforms previous work and traditional monolithic OSes on key lightweightness metrics by an order of magnitude, e.g. it can offer a fork-bound FaaS function throughput 24% higher than that of a monolithic OS, and can fork a μprocess in 54μs, 3.7x faster than a traditional fork.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。