FASE 1: Switch ZRAM to zstd, disable zswap

- ZRAM compression: lzo-rle → zstd (better 1:3 ratio vs 1:2.5, saves
  ~50MB more RAM on 512MB ZRAM at cost of slightly more CPU)
- Add zswap.enabled=0 to kernel cmdline (zswap intercepts before ZRAM,
  preventing efficient compressed swap)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Douglas Teles
2026-04-18 14:30:31 -03:00
parent 85325f88a3
commit ff1d3962ec
2 changed files with 105 additions and 2 deletions
+2 -2
View File
@@ -36,7 +36,7 @@
KERNEL_MAKE_EXTRACMD=" $(get_kernel_make_extracmd)"
# Kernel cmdline
EXTRA_CMDLINE="quiet console=ttyS2,1500000 console=tty0 loglevel=0 vt.global_cursor_default=0 consoleblank=0 net.ifnames=0 systemd.show_status=false mitigations=off audit=0 nowatchdog threadirqs loop.max_loop=16"
EXTRA_CMDLINE="quiet console=ttyS2,1500000 console=tty0 loglevel=0 vt.global_cursor_default=0 consoleblank=0 net.ifnames=0 systemd.show_status=false mitigations=off audit=0 nowatchdog threadirqs zswap.enabled=0 loop.max_loop=16"
# Bootloader to use (syslinux / u-boot)
BOOTLOADER="u-boot"
@@ -76,7 +76,7 @@
DEBUG_TTY="/dev/ttyS2"
# ZRAM Algorithm
ZRAM_COMPRESSION_ALGO="lzo-rle"
ZRAM_COMPRESSION_ALGO="zstd"
# ZRAM Size
ZRAM_SWAP_SIZE="512"