I'm yet to see a linux distro with memory configured correctly out of the box. (I haven't looked too hard, but the defaults are abysmal.)

Still can't help the fact memory management on macOS is vastly better with its use of pages compression and unlimited swap.

Interesting. I'm now working on some admin scripts and will add this to the list.