Disable zramswap in old computer

zramswap makes old computer slow and laggy, because it uses CPU for compressing and decompressing. An example in this Acer One mini laptop zramswap made CPU running constantly before disabling zramswap.

sudo nano /etc/default/zramswap

… set

GNU nano 8.4 /etc/default/zramswap I
#####ALGO=lz4

# Specifies the amount of RAM that should be used for zram
# based on a percentage the total amount of available memory
# This takes precedence and overrides SIZE below
####PERCENT=50

# Specifies a static amount of RAM that should be used for
# the ZRAM devices, this is in MiB
#####SIZE=512

# Specifies the priority for the swap devices, see swapon(2)
# for more details. Higher number = higher priority
# This should probably be higher than hdd/ssd swaps.
######PRIORITY=100

… and

sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="zram.enabled=0 selinux=0"

… after editing

sudo update-grub

The system is custom Bento antiX Mate

System:
Host: antix1 Kernel: 6.12.107+deb13-amd64 arch: x86_64 bits: 64
Desktop: MATE v: 1.26.2 Distro: Bento antiX mate-26_x64 trixie syyskuuta
17 2026