# veilor-os — zram swap override # # Replaces the Fedora default config (which would otherwise set # zram-size = min(ram, 8192) with whatever compression algorithm # zram-generator picked, historically lzo-rle). # # Sizing rationale: 16 GiB compressed (typical 3:1 with zstd → ~48 GiB # effective). Default 8 GiB filled under sustained pressure on modern # 32+ GiB laptops running browsers + LSP + chat clients, leaving the # kernel with no swap headroom and triggering OOM (since veilor-os has # no disk swap fallback — see THREAT-MODEL.md "no key leak risk"). # # Algorithm: zstd. lzo-rle is faster but ratio ~2:1; zstd is ~3:1 with # negligible CPU cost on any post-2018 x86_64. The extra 50% effective # swap capacity is worth more than the microseconds of compress time. [zram0] zram-size = min(ram, 16384) compression-algorithm = zstd