Warning: On my up-to-date Debian with Firefox 99, clicking that link locked up my system and required a hard reset.
$ cat /proc/meminfo
MemTotal: 16269536 kB
Thanks, earlyoom looks interesting. But as I know where my memory usage goes (Firefox, mostly) I think I'll just write a script to kill Firefox if I run out. Much better than waiting for the scheduler to kill KDE out from under me!