|
|
|
|
|
by kstenerud
3072 days ago
|
|
So, in other words, if you have enough memory for your workload that you won't run out, there's no benefit to having swap space (i.e. you've wasted money on memory you don't need). But if you DO have swap space, there won't be a performance hit (at least not under Linux) because it will only swap out some rarely used pages and then sit there doing nothing. So, in the general case, it's better to have it and not need it than need it and not have it. |
|
No, that's the opposite. If you have enough memory for your workload that you won't run out, swapping lets you use more memory for disk cache (instead of keeping unaccessed anonymous pages in real ram).
Unless by "won't run out" you mean "never have to throw away a disk cache page", which seems very unrealistic.