Skip to content

Commit

Permalink
Change ZRAM to size equal RAM even have more than 8 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Dec 12, 2024
1 parent fc16575 commit d842604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/swap-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ zswap_zpool=z3fold # zbud z3fold (note z3fold requires kernel 4.8+)
# Zram compression streams count for additional information see:
# https://www.kernel.org/doc/Documentation/blockdev/zram.txt
zram_enabled=1
zram_size=$(if [ "$RAM_SIZE" -gt "8589934592" ]; then RAM_SIZE=8589934592 ; fi ; echo $RAM_SIZE) # If RAM is less than 8 GB use swap size equal RAM, if more than 8 GB limite to 8 GB.
zram_size=$RAM_SIZE # ZRAM size equal RAM.
# zram_size=$(if [ "$RAM_SIZE" -gt "8589934592" ]; then RAM_SIZE=8589934592 ; fi ; echo $RAM_SIZE) # If RAM is less than 8 GB use swap size equal RAM, if more than 8 GB limite to 8 GB.
zram_count=${NCPU} # Device count (only for kernels < 4.8)
zram_alg=zstd # See $zswap_compressor
zram_prio=32767 # 1 - 32767
Expand Down

0 comments on commit d842604

Please sign in to comment.