Exclude page cache from cgroup memory
Hi,
We run a website with competitive programming problems and we use Isolate for our evaluator (thank you!). We have it configured with cgroups. The memory footprint that Isolate reports seems to include the page cache.
Is there a way to make Isolate exclude the page cache from its report? Or can I kindly request a command line option for this?
We need this for our educational ladder problems. Some of those can, and should, be solved without declaring arrays: basic character counting, finding the min/max in a list of numbers etc. We would like to set a low memory limit to prevent array declarations. However, if we go below 1 or 2 MB, Isolate may report OOM because it includes the page cache size.
It looks like the `file` value in the `memory.stat` cgroups file contains precisely the page cache.
关闭于 2025-11-20 2 条评论