Re:Replacing a $3000/mo Heroku bill with a $55/mo server
by akerl_ on Wednesday October 22, 2025 @07:21AM
(#45667447)
If my swap is on my disk, what good is storing file cache there, next to the files?
Re:Replacing a $3000/mo Heroku bill with a $55/mo server
by CGamesPlay on Wednesday October 22, 2025 @08:28AM
(#45668019)
There is absolutely no point to doing that, which is why file cache is never swapped out. The swapped part is not-recently-used, wired memory from processes, so that there is more room for file cache.
As a small example from a default Ubuntu installation, "unattended-upgrades" is holding 22MB of RSS, and will not impact system performance at all if it spends next week swapped out. Bigger examples can be found in monolithic services where you don't use some of the features but still have to wire them into RAM. You can page those inactive sections of the individual process into swap, and never notice.