News for hackers. Stuff that matters.
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by fluoridation on Tuesday October 21, 2025 @08:47PM (#45663689)
You mean to tell me most applications you've ever used read the entire file system, loading every file into memory, and rely on the OS to move the unused stuff to swap?
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by eru on Wednesday October 22, 2025 @12:45AM (#45664970)
No? What makes you think so?
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by fluoridation on Wednesday October 22, 2025 @12:59AM (#45665034)
Then what do you mean, some applications organize hot and cold data in RAM and storage respectively? Just about every application does it.
Re:Replacing a $3000/mo Heroku bill with a $55/mo server by eru on Wednesday October 22, 2025 @04:41AM (#45666351)
A silly but realistic example: lots of applications leak a bit of memory here and there.

Almost by definition, that leaked memory is never accessed again, so it's very cold. But the applications don't put this on disk by themselves. (If the app's developers knew about which specific bit is leaking, they'd rather fix the leak then write it to disk.)

Re:Replacing a $3000/mo Heroku bill with a $55/mo server by fluoridation on Wednesday October 22, 2025 @07:09AM (#45667356)
That's just recognizing that there's a spectrum of hotness to data. But the question remains: if all the data that the application wants to keep in memory does fit in memory, why do you need swap?