[Paper Review] Isolate First, Then Share: a New OS Architecture for Datacenter Computing
This paper proposes an 'isolate first, then share' (IFTS) operating system architecture that partitions CPU cores, memory, and devices among lightweight, on-demand OS instances called subOSes, enabling both low tail latency and high average performance. The prototype, RainForest, outperforms Linux, LXC, and Xen in worst-case and average performance across diverse benchmarks, with up to 7.8x lower tail latency and 2.6x speedup on Spark workloads using optimized inter-subOS communication.
This paper presents the "isolate first, then share" OS model in which the processor cores, memory, and devices are divided up between disparate OS instances and a new abstraction, subOS, is proposed to encapsulate an OS instance that can be created, destroyed, and resized on-the-fly. The intuition is that this avoids shared kernel states between applications, which in turn reduces performance loss caused by contention. We decompose the OS into the supervisor and several subOSes running at the same privilege level: a subOS directly manages physical resources, while the supervisor can create, destroy, resize a subOS on-the-fly. The supervisor and subOSes have few state sharing, but fast inter-subOS communication mechanisms are provided on demand. We present the first implementation, RainForest, which supports unmodified Linux binaries. Our comprehensive evaluation shows RainForest outperforms Linux with four different kernels, LXC, and Xen in terms of worst-case and average performance most of time when running a large number of benchmarks. The source code is available soon.
Motivation & Objective
- Address the growing need for operating systems that simultaneously optimize for both worst-case (tail) latency and average performance in datacenter environments.
- Overcome the limitations of traditional 'share first, then isolate' (SFTI) OS models, where shared kernel data structures cause performance contention and outliers.
- Enable elastic, on-the-fly creation, destruction, and resizing of isolated OS instances to support diverse, mixed workloads with differentiated QoS requirements.
- Preserve software compatibility by supporting unmodified Linux binaries while achieving strong performance isolation and low overhead.
- Design a secure, efficient, and extensible OS model that avoids monolithic kernel bottlenecks and supports future-scale datacenter workloads.
Proposed method
- Decompose the OS into a supervisor and multiple subOSes running at the same privilege level, with each subOS managing physical resources independently.
- Introduce the subOS abstraction to encapsulate isolated OS instances that can be created, destroyed, and resized dynamically on the same hardware.
- Implement fast inter-subOS communication using shared memory and IPIs (Inter-Processor Interrupts) on demand, minimizing performance impact.
- Use a software-based security mechanism called Security Guard (SG) with Instrumentation-based Privilege Restriction (IPR) and Address Space Randomization (ASR) to enforce isolation between supervisor and subOSes.
- Build RainForest, the first working prototype based on the IFTS model, fully compatible with Linux ABI and supporting unmodified Linux binaries.
- Optimize inter-subOS communication with RFloop, a high-performance shared-memory transport that achieves 15.95x the throughput of a physical NIC for TCP streams.
Experimental results
Research questions
- RQ1Can an OS architecture that isolates resources first, before enabling sharing, achieve better worst-case and average performance than existing SFTI models?
- RQ2How does the IFTS model perform under mixed, diverse datacenter workloads with conflicting QoS requirements?
- RQ3To what extent can the subOS abstraction enable elastic, on-demand resource allocation without sacrificing performance or security?
- RQ4What is the performance overhead and scalability of inter-subOS communication mechanisms in the IFTS model?
- RQ5Can the IFTS model maintain compatibility with existing software while significantly outperforming monolithic and virtualized systems?
Key findings
- RainForest reduces 99th percentile latency by up to 7.8x compared to Linux 2.6.32, 4.2x compared to Linux 2.6.35M, and 2.0x compared to Linux 3.17.4 under memcached workloads.
- On Spark workloads, RainForest achieves a maximum speedup of 1.78x over Xen, 1.43x over Linux, and 1.16x over LXC, with RFloop boosting performance to 2.60x over Xen.
- For the Join query in Spark, using eight subOSes instead of four yields a 170% performance improvement, demonstrating the benefit of optimal subOS distribution.
- RFloop achieves 15.95x the TCP stream throughput of a physical NIC and 13.02x the UDP throughput of a Xen virtual NIC, showing high efficiency in inter-subOS communication.
- The IFTS model enables stable performance scaling: as core count increases to 40, RainForest’s tail latency grows more slowly than Linux, LXC, or Xen.
- Despite the absence of hardware cache coherence across domains, the IFTS model supports multiple coherence domains, though resource sharing is limited to within a domain without additional DSM mechanisms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.