Commit 5baf98ba authored by Matthieu Hautreux's avatar Matthieu Hautreux Committed by Morris Jette
Browse files

task/cgroup/memory - ensure that ConstrainSwapSpace=no is correctly handled

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.
parent 2a2ce582
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment