Detect the memory to prevent swap on small config (with few memory)