Benchmarking Linux CGroup and Schedule Idle
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.
Create a lesson
Metadata
- Comments
- 11 pages, 10 figures
Related papers
Restoring Fair Hrtick Re-arming After Same-Task Repicks in the Linux EEVDF Scheduler
Shared title terminologycs.OSShubhang Kaushik
MorphSched: Workload-Aware Adaptive Scheduler Generation for Linux
Shared title terminologycs.OSYifan Zhang, Hengxuan Lou, Xinkui Zhao et al.
A code-level survey of CPU scheduling mechanisms in open-source embedded hypervisors
Shared title terminologycs.OSLisa Mignerey, Anthony Ferrari, Damien Sauveron et al.
Bring Cloud-Native Networking to FreeBSD Jails: Porting Calico from Linux
Shared title terminologycs.OSSoma Sakaguchi, Shintaro Suzuki, Yuki Nakata et al.
ToolSched: Resource-Efficient Tool Scheduling for Shared-Host LLM Agents
Shared title terminologycs.OSShucheng Zou, Yuhao Gu, Long Chen et al.
Breaking the Coupling: Efficient Concurrency Fuzzing for Linux Kernel Data Race Detection
Shared title terminologycs.OSCen Zhang, Jia-Ju Bai, Zi-Yu Zhang et al.