Skip to contentSkip to conversation

limiting RSS only with memory controller

DISCUSSION Chris Burroughs 1 participant 1 message Jun 23, 2014 cgroup

lore
Share & tools
lore
#0 lore raw

My understanding is that memory.limit_in_bytes limits RSS and page cache use. I would like to only limit RSS. Is there currently a way to do that with the memory controller?

If not (which I think is the case) could someone point me to a discussion on why that's so? The docs [1] reference an OLS BOFs but I don't see any details on RSS+page-cache limiting in the notes [2] from that event.

[1] "At OLS, at the resource management BoF, everyone suggested
that we handle both page cache and RSS together." - https://www.kernel.org/doc/Documentation/cgroups/memory.txt

[2] https://lkml.org/lkml/2006/7/26/237