Re: containers: how to limit pagecache size?

From: Michal Hocko
Date: Mon Oct 12 2015 - 11:12:19 EST


On Fri 09-10-15 14:49:09, Yuzhou wrote:
> Hi, all
>
> How to limit and reclaim container's pagecache?

There is no way to reclaim only the page cache. What you can do is to
put excessive page cache consumers into a separate memory cgroup and
limit them that way.
--
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/