Skip to main content

A new cgroup cpu.max.concurrency controller interface file

UD2.218A | Day 1 | 11:00 - 11:10 | Speakers: Mathieu Desnoyers

A new cgroup cpu.max.concurrency controller interface file
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

This lightning talk discusses an ongoing effort to add a new cpu.max.concurrency interface file to the Linux cgroup CPU controller to facilitate expressing constraints on the number of CPUs which can be used concurrently by threads belonging to the cgroup.

This new interface file will define the maximum number of concurrently running threads for the cgroup. Extend the scheduler to track the number of CPUs concurrently used by the cgroup, and prevent migration when the number of concurrently used CPUs is above the maximum threshold.

The purpose of this new interface is to limit the amount of resident memory needed for userspace per-CPU data, and tune the number of worker threads to the cgroup constraints.

Speakers

Mathieu Desnoyers

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.