Earlier quoted context omitted.
> And with auto-leveling all you really need (if you care that much) is to.. increase the swap size, so there would be less evictions from the swap => less writes. How does that work out? To where would data be evicted from swap? Increased swap size might of course help with wear leveling if that means there's just more unallocated space on the device. > But anyway, even modern TLC drives would be fine for a decade i…
> To where would data be evicted from swap? This is actually an interesting question, but this is quite obvious if you know how it works. Consider this scenario: Some app loads data (it goes to RAM), sometime later this data is moved to the swap. Now the app is trying to access it, so there are two ways: there is no free RAM (eg other apps locked the physical memory), so the access is going through the swap there are…
And thus thrashing causes more swap writes when there's limited swap space.
That's the only scenario I can think of. I didn't think about pages not being removed from swap when swapping in.
> I've seen a server with 850/860 Evos
Well, that's desktop-grade hardware in a server. Might work, but if it doesn't, you get what you asked for.
> and LUKS (so the worst case: cheap drives and all writes are new)
How does LUKS affect that?
> people are forgetting what 3MB/s * 3600 * 24 is whooping 259GB a day, and you need to write ~259GB a day for 3 years to totally deplete the [official] write endurance (YssdMV).
Right, this was my point. That's not an impossible amount of writes but it is a lot more than almost anybody does on a laptop/desktop.