News for hackers. Stuff that matters.
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by vasco on Tuesday October 21, 2025 @06:45PM (#45662687)
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.
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by bayindirh on Tuesday October 21, 2025 @06:53PM (#45662758)
From 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.

Re:Replacing a $3000/mo Heroku bill with a $55/mo server by matt-p on Tuesday October 21, 2025 @07:16PM (#45662999)
Just 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).
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by bayindirh on Wednesday October 22, 2025 @06:50AM (#45667245)
Thanks, 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.

Re:Replacing a $3000/mo Heroku bill with a $55/mo server by vasco on Wednesday October 22, 2025 @04:24PM (#45674697)
You don't care about life of any hardware in the cloud, that doesn't really matter either unless you work for the cloud provider in their datacenter teams.
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by bayindirh on Thursday October 23, 2025 @03:54AM (#45679358)
Yes, but I care about hardware life on my own personal systems and infrastructure I manage, so... :)