# Compressed swap in RAM, sized the way Fedora has shipped it since F34: all of # memory, capped at 8G. Fedora weighed the worry that incompressible pages would # tie up RAM against five years of desktops reporting no trouble from it, which # is more field evidence than we could gather on our own. # # The cap is what bounds the downside. A browser-heavy desktop can drive zstd # down near 1.1:1, where the device backs far less than it advertises, and 8G # keeps that bounded on any machine large enough to notice. The disk swapfile # sits behind it at pri=0 for everything past that. # # Fedora spells this zram-fraction = 1.0 with max-zram-size = 8192; both keys # are deprecated in favour of zram-size, which computes the same numbers. [zram0] zram-size = min(ram, 8192) compression-algorithm = zstd # Above the pri=0 that omarchy-hibernation-setup gives the disk swapfile, so # zram absorbs everything until it's full. swap-priority = 100