Even so you could use cgroups to cap the memory for the process (including its caches).