Skip to content

Instantly share code, notes, and snippets.

@rodhfr
Last active December 20, 2025 19:23
Show Gist options
  • Select an option

  • Save rodhfr/edd4d39a15c725c7c9453efe0fee2ade to your computer and use it in GitHub Desktop.

Select an option

Save rodhfr/edd4d39a15c725c7c9453efe0fee2ade to your computer and use it in GitHub Desktop.
sudo btrfs filesystem mkswapfile --size 16g /swapfile
sudo swapon /swapfile
htop
sudo nvim /etc/sysctl.d/99-sysctl.conf
# /etc/sysctl.d/99-sysctl.conf
# vm.swappiness=20
# check swapiness:
ls /proc/sys/vm/swapiness
sudo nvim /etc/fstab
# /etc/fstab
# /swapfile none swap sw,pri=-2 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment