So no, 72GB or 128GB makes no difference.
I recently upgraded to 64GB to run quantized LLM models, but when I'm not using an LLM I rarely use more than 16GB, much less 32GB.
Never have the same problem on Windows even though I only have 16GB there. Feels like Linux is just really bad at memory management. That may be skewing the Steam survey since almost everyone there will be using Windows.
On Linux I wish I had 64GB.
I believe Fedora comes ootb with a lot of things to make ram management quite good. Using another distro these days, but Fedora impressed me on that front.
(edit: Try to use zram and zswap, check if your i/o scheduler is correct for your hardware, and increase your swapiness value. These should make your system behave better. For other performance improvements, use ananicy and irqbalance.)
Even if it is possible to fix this, it's still a horrible bug because you absolutely should not have to blindly tweak settings to stop a desktop computer from hard-rebooting when it runs out of RAM.
I think this is a really fundamental problem on Linux though - it would require enormous changes and unprecedented cooperation between different groups for a proper fix. Much easier to say "you're holding it wrong".
If it's the latter, that's because Linux deliberately uses as much RAM as possible for caches and such, which means "free" should be near zero most of the time. The number that actually matters on Linux is "available" memory, which is the amount of memory that is currently free or used for optional caches and could be reallocated for a new required chunk of RAM should an application need it. Here [0] is a decent in-depth explanation.
If it's the former, there's something very wrong with your installation, because every Linux system I have makes much better usage of memory than Windows, even running a heavyweight DE like KDE. Even my machine that dual-boots Linux and Windows performs noticeably better on all metrics (including memory usage) when in Linux.
If you use a lot of VMs, it comes in handy. If you do a lot of heavyweight compilation in parallel, same thing. But at least on Linux, popping 3 VS Code projects and 4 more browsers doesn't even hit 50% utilization.
But the 7950X is grossly underutilised, I don't know what to do with it.
MSAN: https://github.com/google/sanitizers/wiki/MemorySanitizerRust builds, in comparison, don't actually reach that far, mainly because it is proportional to the maximum number of parallel jobs. In my experience, 48 GB was more than plenty for 8 parallel jobs if I wasn't doing anything else.