The current amount of RAM detected is incorrect on macOS. This is because the variable we use is 32bits.
See
https://superuser.com/questions/197059/mac-os-x-sysctl-get-total-and-free-memory-size
https://stackoverflow.com/questions/8782228/retrieve-ram-info-on-a-mac
https://stackoverflow.com/questions/583736/determine-physical-mem-size-programmatically-on-osx