But: I have currently on this Debian Testing box under KDE Unity, Rider, Sublime Merge (with a few hundred changed files), half a dozen Yakuake tabs, Kate as note pad, and around 30 Firefox windows (with maybe 5 to 6 thousand tabs)¹ open.
According to htop it uses only around 15 GB RAM.
(Hmm, actually something seems not OK when I look at it as there is still unused RAM, but htop says almost 9 days of uptime? And it still didn't fill all unused RAM with FS cache? Strange. Did something change in Linux 6.0? Maybe something really broke in Linux memory management? But I actually didn't notice anything unusual after the latest Kernel update.)
---
¹ Before someone asks: Yes, thousands of tabs. But don't ask further…
Firefox handles this just fine with the help of tree tabs and tab auto discard. Only "booting" Firefox in such a state takes some time (I guess over 1 min.); but when it runs it runs just fine. No issues.