[PATCH][RFC] memory.min_usage again

Balbir Singh balbir at linux.vnet.ibm.com
Wed Sep 10 08:32:15 PDT 2008

YAMAMOTO Takashi wrote:
> hi,
>> hi,
>> here's a patch to implement memory.min_usage,
>> which controls the minimum memory usage for a cgroup.
>> it works similarly to mlock;
>> global memory reclamation doesn't reclaim memory from
>> cgroups whose memory usage is below the value.
>> setting it too high is a dangerous operation.

Looking through the code I am a little worried, what if every cgroup is below
minimum value and the system is under memory pressure, do we OOM, while we could
have easily reclaimed?

I would prefer to see some heuristics around such a feature, mostly around the
priority that do_try_to_free_pages() to determine how desperate we are for
reclaiming memory.


More information about the Containers mailing list