預設把 zswap 打開

前幾天 Lobsters 上看到「Debunking zswap and zram myths」這篇,想到預設其實可以開 zswap。 用 GRUB 的話可以這樣開: echo 'GRUB_CMDLINE_LINUX_DEFAULT=$GRUB_CMDLINE_LINUX_DEFAULT zswap.enabled=1' | sudo tee /etc/default/grub.d/99-zswap.

Gea-Suan Lin's BLOG
預設把 zswap 打開

前幾天 Lobsters 上看到「Debunking zswap and zram myths」這篇,想到預設其實可以開 zswap。 用 GRUB 的話可以這樣開: echo 'GRUB_CMDLINE_LINUX_DEFAULT=$GRUB_CMDLINE_LINUX_DEFAULT zswap.enabled=1' | sudo tee /etc/default/grub.d/99-zswap.

Gea-Suan Lin's BLOG
Years living in error about using #zram on all my #linux machines, but now the best explanation that I've never read on RAM usage by Chris Down in https://chrisdown.name/2018/01/02/in-defence-of-swap.html makes me migrate all my host to native kernel #zswap and file swap.
#CachyOS, #Nixos and others: upgrade your mind !
In defence of swap: common misconceptions

tl;dr: Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve.

RE: https://c.im/@lwnbot/116284493258223180

Nice reading although I still use zram for most.

#linux #zram #zswap

Ah, the classic "Let me explain why you're wrong about #zswap and zram" rant, complete with obligatory self-promotion links. 🙄 Who knew compressing RAM could be so controversial? But hey, if you need more jargon in your life, this blog's got you covered. 💻🎉
https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html #zram #RAMcompression #techrants #selfpromotion #HackerNews #ngated
Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.

Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.

zswap - ArchWiki

TIL about #zswap "a compressed write-back cache for swapped pages, as a form of virtual memory compression". this will hopefully came in handy soon for performance :)
also there are zram and zcache (https://askubuntu.com/a/472227 has a comparison)
zram vs zswap vs zcache Ultimate guide: when to use which one

What the hell are they? How are they different (I've written my understanding in an answer below) In the Zswap system, when a page is evicted from the zswap to the actual swap is it stored in a

Ask Ubuntu

According to LWN kernel source DB, the number of my Linux mainline commits exceeded 1,000 with 6.19-rc1. It feels like a moment to me.

Most commits were made for DAMON, but the 1,000-th commit was for zswap ;)

$ git log --oneline --author "SeongJae" | grep damon | wc -l 872 $ nr=0; for c in $(git log --pretty=%h --reverse --author "SeongJae"); do nr=$((│[43] [PATCH v3] mm/damon/sysfs-schemes: Remove outdated TODO in target_nid_store() (Swaraj nr + 1)); if [ "$nr" -eq 1000 ]; then git log "$c" -1 --pretty="%h %s"; fi; done 0fdaa13ee93a Docs/admin-guide/mm/zswap: s/red-black tree/xarray/

#linux #kernel #damon #zswap