Mitigating context switching in densely packed Linux clusters with Latency-Aware Group Scheduling

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Isstaif, Al Amjad Tawfiq, Kalyvianaki, Evangelia, Mortier, Richard
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908497383260160
author Isstaif, Al Amjad Tawfiq
Kalyvianaki, Evangelia
Mortier, Richard
author_facet Isstaif, Al Amjad Tawfiq
Kalyvianaki, Evangelia
Mortier, Richard
contents Cluster orchestrators such as Kubernetes depend on accurate estimates of node capacity and job requirements. Inaccuracies in either lead to poor placement decisions and degraded cluster performance. In this paper, we show that in densely packed workloads, such as serverless applications, CPU context switching overheads can become so significant that a node's performance is severely degraded, even when the orchestrator placement is theoretically sound. In practice this issue is typically mitigated by over-provisioning the cluster, leading to wasted resources. We show that these context switching overhead arise from both an increase in the average cost of an individual context switch and a higher rate of context switching, which together amplify overhead multiplicatively when managing large numbers of concurrent cgroups, Linux's group scheduling mechanism for managing multi-threaded colocated workloads. We propose and evaluate modifications to the standard Linux kernel scheduler that mitigate these effects, achieving the same effective performance with a 28% smaller cluster size. The key insight behind our approach is to prioritise task completion over low-level per-task fairness, enabling the scheduler to drain contended CPU run queues more rapidly and thereby reduce time spent on context switching.
format Preprint
id arxiv_https___arxiv_org_abs_2508_15703
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mitigating context switching in densely packed Linux clusters with Latency-Aware Group Scheduling
Isstaif, Al Amjad Tawfiq
Kalyvianaki, Evangelia
Mortier, Richard
Operating Systems
Distributed, Parallel, and Cluster Computing
Cluster orchestrators such as Kubernetes depend on accurate estimates of node capacity and job requirements. Inaccuracies in either lead to poor placement decisions and degraded cluster performance. In this paper, we show that in densely packed workloads, such as serverless applications, CPU context switching overheads can become so significant that a node's performance is severely degraded, even when the orchestrator placement is theoretically sound. In practice this issue is typically mitigated by over-provisioning the cluster, leading to wasted resources. We show that these context switching overhead arise from both an increase in the average cost of an individual context switch and a higher rate of context switching, which together amplify overhead multiplicatively when managing large numbers of concurrent cgroups, Linux's group scheduling mechanism for managing multi-threaded colocated workloads. We propose and evaluate modifications to the standard Linux kernel scheduler that mitigate these effects, achieving the same effective performance with a 28% smaller cluster size. The key insight behind our approach is to prioritise task completion over low-level per-task fairness, enabling the scheduler to drain contended CPU run queues more rapidly and thereby reduce time spent on context switching.
title Mitigating context switching in densely packed Linux clusters with Latency-Aware Group Scheduling
topic Operating Systems
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2508.15703