Hello. On Sat, Nov 09, 2024 at 08:38:54PM GMT, Toralf Förster <toralf.foerster@xxxxxx> wrote: > The reproducer in [1] shows that a process running under Cgroup2 control > is OOM'ed if its stdout goes to a file at at tmpfs filesystem. The (writer) process allocates new backing pages for the tmpfs and it's charged to that process' cgroup. > For a regular file system that behaviour is not reproduced here. Your reproducer disables swap, so there's no option to write out the anonymous memory. OTOH, regular page cache can be written out to the backing persistent filesystem and free up RAM. > I do wonder if this is a feature? It's how tmpfs memory is charged. HTH, Michal
Attachment:
signature.asc
Description: PGP signature