Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the technical challenges and proposed solutions for implementing per-cgroup swap device control in the Linux kernel through this conference talk from the Linux Plumbers Conference. Learn about the motivation for enabling cgroup-level control over swap devices, particularly for scenarios where background processes need to use slower network-backed swap devices while foreground processes utilize faster local storage. Discover the comparison between alternative approaches including per-cgroup swap priority, swap device control on block devices, swap tiering, and per-cgroup dedicated swap devices. Examine the implementation challenges including required changes in percpu clusters and swap fast paths, consistency with cgroup parent-child semantics, NUMA autobind interaction complexities, and considerations for per-cgroup swap tier limits. Understand the ongoing development process and open design questions that emerged from RFC to PATCH discussions, including tier mask calculation trade-offs, handling of tier mismatches between parent and child cgroups, and migration strategies for swap-out pages. Gain insights into the technical requirements for restricted environments where idle devices serve as extended swap memory and the kernel-level modifications needed to support this functionality.