Skip to main content

Module cell_manager

Module cell_manager 

Source
Expand description

Cell manager for userspace-driven cell creation.

This module implements the --cell-parent-cgroup mode where cells are created for direct child cgroups of a specified parent. Uses inotify to watch for cgroup creation/destruction and manages cell ID allocation.

Structsยง

CellInfo
Information about a cell created for a cgroup
CellManager
Manages cells for direct child cgroups of a specified parent
CpuAssignment
Result of CPU assignment computation, containing both primary and optional borrowable masks.

Functionsยง

cgroup_root_relative ๐Ÿ”’
Strip the cgroup mount prefix from a stored cell path, yielding the root-relative cgroup path (e.g. /sys/fs/cgroup/a/b -> /a/b).
compute_targets ๐Ÿ”’
Compute the global target CPU count for each cell.
distribute_cpus_proportional ๐Ÿ”’
Distribute CPUs among recipients proportionally by weight.