Skip to content

Instantly share code, notes, and snippets.

@raymanfx
Created November 7, 2018 11:07
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 raymanfx/7b672c9fa59996a73c049e507f33fafb to your computer and use it in GitHub Desktop.
Save raymanfx/7b672c9fa59996a73c049e507f33fafb to your computer and use it in GitHub Desktop.
Fedora setup
#!/bin/bash
# zswap
# https://fedoraproject.org/wiki/Zswap
sudo -i
echo "add_drivers+=\"lz4 lz4_compress\"" | tee /etc/dracut.conf.d/lz4.conf
dracut --regenerate-all --force
# /etc/default/grub
GRUB_CMDLINE_LINUX=" ... zswap.enabled=1 zswap.max_pool_percent=25 zswap.compressor=lz4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment