Post #2726168
2026-05-20 19:18 UTC
Replies (2)
-
@dreugeworst@lemmy.ml 2026-05-21 05:12
Intel optane? is there even any advantage left for optane compared with a fast, modern nvme disk?
-
@Atemu@lemmy.ml 2026-05-21 10:38
Swap is rarely hit, especially if set up with zram. This is not a good thing btw. Any unused anonymous page takes up space that could instead be used for file-backed pages that make your system faster. Multiple swap tiers beyond zram/zswap Swap is not tiered storage! Priorities control order of preference, not tiers. If you run out of space on a higher priority, it will not move that swap’s data to a lower priority swap. It will keep all of it exactly where it is and new data will hit the lower prio swap instead, no matter how hot it is. Intel Optane Cool tech but it’s dead and was quite niche even when it was alive. zram write-back device Not a thing you actually want to use for swap. It’s not an automatic writeback that is integrated into the Linux MM in any way. (Probably has some use-case for non-swap zram purposes though.) Large HDD swap partition used as a third tier swap disk This makes no sense at all unless you are extremely space-constrained on the NVMe and absolutely must not OOM – even if progress stalls to an absolute crawl. swapped pages can be moved around by the user (or a tool), by turning swap devices off and on. This is neither feasible nor desirable. You don’t have enough granularity to do anything useful by doing so. Even if you had, it’d work against the MM because it resurrects pages as “hot” that have been cold for a long time. In any situation where swap is important, making the kernel think cold pages are hot is the very last thing you want. I too wish it were but tiered/transcedental memory is not a thing in Linux and these hacks do not change that fact; they merely look similar if you don’t look close enough. I cannot think of a single use-case where this would be preferable to a decently sized physical swap with zswap XOR just zram swap (if physical swap is infeasible).