this post was submitted on 20 Dec 2025
199 points (98.5% liked)
Technology
77815 readers
2882 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If it's a leak in a mod and some pages just aren't being accessed at all, then I'd think that the OS might be able to just page them out.
It might be possible to crank up the amount of swap you have and put that swap on a relatively-fast storage device. Preferably NVMe, or maybe SATA-attached SSD. I mean, yeah, SSD prices are up too, but you don't need all that much space to just store swap, and it's vastly cheaper than DRAM.
If you have a spare NVMe slot on your system or a free spot to mount a 2.5 inch SATA drive and SATA plug, should be good.
If you have a free PCIe slot, doing a quick Amazon search, looks like a PCIe card with a beefy heatsink to provide an M.2 slot to mount a single stick of NVMe can be had for $14:
https://www.amazon.com/Sabrent-NVMe-PCIe-Aluminum-EC-PCIE/dp/B084GDY2PW
And a 128GB M.2 stick of NVMe for $20:
https://www.amazon.com/GALIMU-128GB-XP2000-Gen4x4-XP2000F128GInternal/dp/B0FY4CQRYF
I have no idea the degree to which "lots of cheap, fast swap" helps. It will probably depend a lot on a particular use case. In some cases, probably about as good as having the memory. My guess is that in general, it'll tend to be more helpful on systems running lots of programs than on systems running one large game (though a leak might change that up), but hard to say without actual testing.
If a flash storage device is really heavily used, I imagine that it'll probably eat through its lifetime write cycles relatively quickly, but if nothing else lives on the device, no biggie if it fails (well, not in terms of data loss for stored stuff), and I don't expect it being 5 or 10 years until DRAM prices come back down, so it doesn't need to last forever.
Probably be interesting to see some gaming sites benchmark some of these approaches.