The current method of calculating the amount of free memory is incorrect. The linux kernel provides a method of getting this value, MemAvailable, which we can simply use directly