On Wed, Jun 18, 2025 at 09:07:51PM +0900, YoungJun Park wrote: > This is because cgroups can still restrict swap device usage and control > device order without requiring explicit priorities for all devices. > In this view, the cgroup interface serves more as a limit or preference > mechanism across the full set of available swap devices, rather than > requiring full enumeration and configuration. I was wondering whether your use cases would be catered by having memory.swap.max limit per device (essentially disable swap to undesired device(s) for given group). The disadvantage is that memory.swap.max is already existing as scalar. Alternatively, remapping priorities to memory.swap.weight -- with sibling vs sibling competition and children treated with weight of parent when approached from the top. I find this weight semantics little weird as it'd clash with other .weight which are dual to this (cgroups compete over one device vs cgroup is choosing between multiple devices). Please try to take the existing distribution models into account not to make something overly unidiomatic, Michal