Benchmarking Linux CGroup and Schedule Idle
Anna Arpaci-Dusseau
Key points
From the paper's conclusion- We show it is non-trivial to balance the potential tail-latency impact on a LC server with the throughput of BE tasks.
Abstract
cgroups are a Linux kernel primitive that limits, accounts for, and isolates the resource usage (CPU, memory, disk I/O) of a collection of processes. Many provider-side serverless systems (Mitosis, gVisor, Havest VM, FAASM) leverage linux containers based around cgroups/namespaces for their performance isolation. However, how well does this primitive map to the needs of serverless platforms? How does the linux CFS scheduler deal with cgroups and SCHED IDLE and what are the core sources of high tail latency? Would a new primitive design fit the needs of serverless isolation better? In this work we take the first step to answering these questions by profiling the current behavior of cgroups and a sched idle policy via a thorough benchmarking study. We emulate the setting of Performance-Critical (LC) server in the presence of an intensive background (BE) process and note the impact of each primitive on the performance of the server. We show it is non-trivial to balance the potential tail-latency impact on a LC server with the throughput of BE tasks. Furthermore, there are many variables to adjust for the developer between hard maximum bandwidth limits, weighted cpu shares, the presence of the sched idle policy, or additionally "niceness" priority in the scheduling policy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SchedBlame: Who Ran While You Waited? Culprit-Attributed CPU Contention for Containers on Stock KernelsarXiv · 2026
- Characterizing Serverless Workloads: A Large-Scale Analysis of Function-as-a-Service PlatformsarXiv · 2026
- Constructivism: Runtime-Aware CXL Memory Management for MicroservicesACM Transactions on Architecture and Code Optimization · 2026
- Achieving Resource Isolation in Multi-Tenant Cloud Platforms Without Sacrificing PerformanceJournal of Computing and Electronic Information Management · 2026
- CCAaaS: An Orchestration Platform for High-Velocity Design, Development, and Deployment of Data Center Transports at MetaarXiv · 2026
- Cold Start Latency Optimization Strategies for Function as a Service PlatformsJisuanji shenghuojia. · 2026