Been banging my head against this for a while now. mesos 0.21.0 , marathon 0.7.5, centos 6 servers.
When I enable cgroups (flags are : --cgroups_limit_swap --isolation=cgroups/cpu,groups/mem ) the memory limits I'm setting are reflected in memory.soft_limit_in_bytes but not in memory.limit_in_bytes or memory.memsw.limit_in_bytes. Upshot is our runaway task eats all RAM and swap on the server until the OOM steps in and starts firing into the crowd. This line of code seems to never lower a hard limit: https://github.com/apache/mesos/blob/master/src/slave/containerizer/isolators/cgroups/mem.cpp#L382 which means both of those tests must be true, right? the current limit is insanely high (8192 PB if i'm reading it right) - how would I make info->pid.isNone() be true ? Have tried restarting the slave, scaling the marathon apps to 0 tasks then back. Bit stumped.

