[External] : Re: Moving Forward with AHS for G1
Erik Osterlund
erik.osterlund at oracle.com
Tue Apr 15 20:38:36 UTC 2025
Hi Man,
> On 15 Apr 2025, at 21:25, Man Cao <manc at google.com> wrote:
>
>
> > Okay, that makes sense. So you do use cgroups for your containers. And you do want to limit their memory. So why don’t you want to use the cgroup memory limits?
>
> One example is that the custom container has a custom implementation for soft limit, and still uses cgroup memory limits as hard limit. Apps that are "good citizens" should strive to stay below the soft limit.
That’s exactly what the purpose of memory.high is. With cgroups v2, memory.high is a soft limit while memory.max is a hard limit. AHS should respect both really.
/Erik
More information about the hotspot-gc-dev
mailing list