mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user