Skip to content

Instantly share code, notes, and snippets.

@Kuri-su
Last active August 20, 2020 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kuri-su/ffa4fbbb2c91e9c6242d626f1978c9d9 to your computer and use it in GitHub Desktop.
Save Kuri-su/ffa4fbbb2c91e9c6242d626f1978c9d9 to your computer and use it in GitHub Desktop.
#zswap install

{"title":"zswap install","type":"blogGist","show":true,"description":"zswap install","tag":["linux","ubuntu-points"]}

Ubuntu

# 在 GRUB_CMDLINE_LINUX_DEFAULT 的内容里添加 zswap.enabled=1
$ vi /etc/default/grub
# before
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash "
# after
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash zswap.enabled=1"
# ------
$ sudo update-grub

最后重启即可

Manjore || Arch

一般默认开启, 如果没有可以使用下面命令开启

$ sudo pacman -S systemd-swap --noconfirm
$ sudo systemctl enable systemd-swap
$ sudo systemctl start systemd-swap
$ cat /sys/module/zswap/parameters/enabled
Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment