4 ms·
These are close to optimal recommendations. They capture the modern truth that swap is too slow to actually transfer to and from, but that it can enlarge the ef
by davidgould 8y ago
These are close to optimal recommendations. They capture the modern truth that swap is too slow to actually transfer to and from, but that it can enlarge the effective memory slightly by providing a place to park very rarely used data.
However, this is only a minor optimization and mostly it is not worth the trouble of configuring it. On servers especially I prefer zero swap. The mere existance of swap can cause pain as inevitably some new admin will come along and insist on monitoring swap use and sending alerts when it becomes full. "We have critical situation: we are using 99% of (8GB) swap on the database host (1TB main memory), I'm rebooting it". True story.