> this is something that I've noticed MacOS has generally handled well
Really? I’ve had the opposite experience. MacOS running out of memory and paging heavily almost always necessitates a reboot to get performance fully restored, even if you kill the memory hog (if you aren’t willing to deal with a sluggish machine for a while that is).
However, the MacOS kernel seems to require a much higher amount of wired memory than the Linux kernel for similar workloads, so...
I don't know if those are related, but it'd be interesting to figure out what MacOS does differently (their kernel is open sourced) and to see if that behavior could be adapted into the Linux kernel.