Created
November 7, 2018 11:07
-
-
Save raymanfx/7b672c9fa59996a73c049e507f33fafb to your computer and use it in GitHub Desktop.
Fedora setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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