4 ms·
Thrashing the page cache is typically much less horrible than swap thrashing, so swap off is still an improvement. If you want a canary, why not just directly
by aidenn0 11y ago
Thrashing the page cache is typically much less horrible than swap thrashing, so swap off is still an improvement.
If you want a canary, why not just directly monitor the page cache size?
- Dylan16807 11y agoI suppose it depends how big your binaries are, but once those are getting culled from memory things are not pretty. Keep in mind that if your swap is not huge, it will very often fill will cold data and you won't have swap thrashing despite running out of memory. Good point about measuring the page cache directly.
- aidenn0 11y agoAh yes. We can agree that both small swap and no swap are superior to the "2x RAM" nonsense that still pops up as a recommendation though.