4 ms·
In EC2 using any kind of swapping is just wrong, the comment you replied to already made all the points that can be made though.
by vasco 1y ago
In EC2 using any kind of swapping is just wrong, the comment you replied to already made all the points that can be made though.
- bayindirh 1y agoFrom my understanding, the comment I'm replying to uses EC2 example to portray that swapping is wrong in any and all circumstances, and I just replied with my experience with my system administrator hat. I'm not an AWS guy. I can see and touch the servers I manage, and in my experience, SWAP works, and works well.
- matt-p 1y agoJust for context EC2 typically uses network storage that, for obvious reasons, often has fairly rubbish latency and performance characteristics. Swap works fine if you have local storage, though obviously it burns through your SSD/NVME drive faster and can other side effects on it's performance (usually not particularly noticeable).
- bayindirh 1y agoThanks, I'll keep that in mind if I start to use EC2 for workloads. However, from my experience, normal (eviction based) usage of SWAP doesn't impact the life of an SSD in a measurable manner. My 256GB system SSD (of my desktop system) shows 78% life remaining after 4 years of power on hours, which also served as /home for at least half of its life.