From 5bc55da5ee11f19e00523d0b09a026b7c589831f Mon Sep 17 00:00:00 2001 From: Logan G Date: Wed, 17 May 2023 22:31:34 -0600 Subject: [PATCH] Added ZRAM --- airootfs/etc/systemd/swap.conf | 35 ++++++++++++++++++++++++++++++++++ packages.x86_64 | 1 + 2 files changed, 36 insertions(+) create mode 100644 airootfs/etc/systemd/swap.conf diff --git a/airootfs/etc/systemd/swap.conf b/airootfs/etc/systemd/swap.conf new file mode 100644 index 0000000..75c4074 --- /dev/null +++ b/airootfs/etc/systemd/swap.conf @@ -0,0 +1,35 @@ +# This file is part of systemd-swap. +# +# Entries in this file show the systemd-swap defaults as +# specified in /usr/share/systemd-swap/swap-default.conf +# You can change settings by editing this file. +# Defaults can be restored by simply deleting this file. +# +# See swap.conf(5) and /usr/share/systemd-swap/swap-default.conf for details. + +zswap_enabled=0 +#zswap_compressor=zstd +#zswap_max_pool_percent=25 +#zswap_zpool=z3fold +zram_enabled=1 +#zram_size=$(( RAM_SIZE / 4 )) +#zram_count=${NCPU} +#zram_streams=${NCPU} +#zram_alg=zstd +#zram_prio=32767 +#swapfc_enabled=0 +#swapfc_force_use_loop=0 +#swapfc_frequency=1 +#swapfc_chunk_size=256M +#swapfc_max_count=32 +#swapfc_min_count=0 +#swapfc_free_ram_perc=35 +#swapfc_free_swap_perc=15 +#swapfc_remove_free_swap_perc=55 +#swapfc_priority=50 +#swapfc_path=/var/lib/systemd-swap/swapfc/ +#swapfc_nocow=1 +#swapfc_directio=1 +#swapfc_force_preallocated=0 +#swapd_auto_swapon=1 +#swapd_prio=1024 diff --git a/packages.x86_64 b/packages.x86_64 index eeacce6..f5e8619 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -222,3 +222,4 @@ bless rclone hexedit flashrom +systemd-swap