Added buffer proportional to free memory in linux.