Tech News
← Home  ·  All topics

Zswap

2 GoKawiil briefs on this topic

Meta engineer details CRAM, a new compressed-memory system for Linux

At the Linux Plumbers Conference in Prague, Meta engineer Gregory Price presented CRAM, a hardware-offloaded memory compression technique for Linux that allows cacheline and byte-level access to compressed data. Unlike ZRAM or Zswap, CRAM represents compressed memory as a private NUMA node rather than a block device, letting the kernel manage it using standard memory semantics like migration and ballooning.

NixOS guide details swap, ZRAM, Zswap and hibernate configuration tradeoffs

A blog post walks through configuring swap on NixOS for desktops and laptops that use suspend-then-hibernate, contrasting swap partitions with swap files. It notes that swap files complicate hibernation because initramfs must locate the swap space before file systems mount, requiring an EFI variable to record the location at hibernation time. The author shares working configurations: a simple swap partition on a desktop, and a LUKS-encrypted btrfs swap file on a laptop using the disko luks-btrfs-subvolumes template.