On Linux you have full control, you can disable swapping if you want to preserve your disk. You can also use a less heavy UI manager and further reduce memory usage. You have, in theory, more options to control what runs on the hardware than on a Mac.