it's not working, and it is EXTREMELY FRUSTRATING me, please halp!
↪ systemctl status systemd-swap.service
* systemd-swap.service - Manage swap spaces on zram, files and partitions.
Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-07-20 11:06:48 MSK; 1min 35s ago
Process: 415 ExecStart=/usr/bin/systemd-swap start (code=exited, status=1/FAILURE)
Main PID: 415 (code=exited, status=1/FAILURE)
Status: "Swap unit activation finished"
Jul 20 11:06:48 reache systemd-swap[415]: INFO: Zswap: backup current configuration: start
Jul 20 11:06:48 reache systemd-swap[415]: INFO: Zswap: backup current configuration: complete
Jul 20 11:06:48 reache systemd-swap[415]: INFO: Zswap: set new parameters: start
Jul 20 11:06:48 reache systemd-swap[415]: INFO: Zswap: Enable: 1, Comp: lz4, Max pool %: 25, Zpool: zbud
Jul 20 11:06:48 reache systemd-swap[415]: INFO: Zswap: set new parameters: complete
Jul 20 11:06:48 reache systemd-swap[415]: INFO: swapD: pickup devices from systemd-gpt-auto-generator
Jul 20 11:06:48 reache systemd-swap[415]: INFO: swapD: searching swap devices
Jul 20 11:06:48 reache systemd-swap[415]: ERRO: swapfc_frequency is not set to a valid integer value: 1s
Jul 20 11:06:48 reache systemd[1]: systemd-swap.service: Main process exited, code=exited, status=1/FAILURE
Jul 20 11:06:48 reache systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
zswap_enabled=1
zswap_compressor=lz4 # lzo lz4
zswap_max_pool_percent=25 # 1-99
zswap_zpool=zbud # zbud z3fold
################################################################################
# ZRam
#
# Kernel >= 3.15
# Zram compression streams count for additional information see:
# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
zram_enabled=0
zram_size=$(($RAM_SIZE/4)) # This is 1/4 of ram size by default.
zram_streams=$NCPU
zram_alg=lz4 # lzo lz4 deflate lz4hc 842 - for Linux 4.8.4
zram_prio=32767 # 1 - 32767
################################################################################
# Swap File Chunked
# Allocate swap files dynamically
# For btrfs fallback to swapfile + loop will be used
# ex. Min swap size 512M, Max 8*512M
swapfc_enabled=1
swapfc_force_use_loop=0 # Force usage of swapfile + loop
swapfc_frequency=1s # How often check free swap space
swapfc_chunk_size=8G # Allocate size of swap chunk
swapfc_max_count=4 # 0 - unlimited, note: 32 is a kernel maximum
swapfc_free_swap_perc=30 # Add new chunk if free < 15%
# Remove chunk if free > 15+40% & chunk count > 2
swapfc_path=/var/lib/systemd-swap/swapfc/
# Only for swapfile + loop
swapfc_nocow=0 # Disable CoW on swapfile
swapfc_directio=1 # Use directio for loop dev
swapfc_force_preallocated=0 # Will preallocate created files
################################################################################
# Swap devices
# Find and auto swapon all available swap devices
swapd_auto_swapon=1
swapd_prio=1024
it's not working, and it is EXTREMELY FRUSTRATING me, please halp!