Re: To be fair to systemd …
In theory, by having an oomd in userspace it can better be aware of things like entire applications instead of just individual processes. Unfortunately, in practice, that makes it a buggy mess - doing things like killing entire sessions if they are started from console, etc etc. You can find several bug reports about systemd-oomd being far too aggressive in killing applications wherever it is used, whether that is Redhat or Ubuntu Here is a video that talks through some of the problems: https://www.youtube.com/watch?v=XotltmuFUyU
In my opinion, the Mint team made a great decision to not include systemd-oomd's userspace implementation, which is now default in Ubuntu 22.04, in Mint 21. It needs some more time in the oven, at the very least.