I am trying to limit the bandwidth of a process to the memory. I have 2 cgroups (cgroup1 and cgroup2) with processes in them. I can limit the amount of memory is that used by each cgroup. But if they keep calling malloc() and free() and saturating the memory bus, they influence each other.
How do I limit this? I don't have two different memory nodes, and no NUMA.