Skip to content
Snippets Groups Projects
  • Matthieu Hautreux's avatar
    5baf98ba
    task/cgroup/memory - ensure that ConstrainSwapSpace=no is correctly handled · 5baf98ba
    Matthieu Hautreux authored
    Only set memory.memsw.limit_in_bytes to the computed amount of allowed
    RAM+Swap when ConstrainSwapSpace=yes in cgroup.conf.
    When ConstrainSwapSpace=yes and ConstrainRAMSpace=no, automatically
    set AllowedRAMSpace to 100% in order to compute the memsw.limit based
    on the allocated memory plus the allowed swap percent. Then use that
    limit for both mem and mem+sw limits.
    5baf98ba
    History
    task/cgroup/memory - ensure that ConstrainSwapSpace=no is correctly handled
    Matthieu Hautreux authored
    Only set memory.memsw.limit_in_bytes to the computed amount of allowed
    RAM+Swap when ConstrainSwapSpace=yes in cgroup.conf.
    When ConstrainSwapSpace=yes and ConstrainRAMSpace=no, automatically
    set AllowedRAMSpace to 100% in order to compute the memsw.limit based
    on the allocated memory plus the allowed swap percent. Then use that
    limit for both mem and mem+sw limits.