Don’t trust me on this one but the wiki contradict itself
If you cat /sys/module/zswap/parameters/enabled it will be either N or Y, not 0 or 1, you can see the defaults with the following command as shown on the wiki page you linked
Ok, check your /etc/mkinitcpio.conf and make sure lz4 isn’t used anywhere, as HoaS said above, then check /etc/default/grub for it as well (GRUB_CMDLINE_LINUX), then run (as root)
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
That should remove the errors during boot, lemme know
Hi, @Head_on_a_Stick
But in the wiki they say you have to do these steps, am I wrong?
Add lz4 lz4_compress to the mkinitcpio#MODULES array.
Replace the ramdisk environment with a newly generated one:
# mkinitcpio -g /boot/initramfs.img
Add zswap.compressor=lz4 to your kernel parameters.
On next reboot, see #Current parameters to check if zswap now uses lz4 as compressor.
thank
edit
The strange thing is that I added:
zswap.compressor=lz4
without updating grub then it does not appear in the Kernel parameters
but if I check boot time load message, it seems to work.
Do you have any swap? Please post the output of free -h.
The installation guide uses mkinicpio -p to generate a new initramfs image and it was written by Arch developers rather than Arch users, unlike the zswap page.
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR='ArchLabs'
GRUB_CMDLINE_LINUX_DEFAULT="quiet pcie_aspm=force libata.noacpi=1 nowatchdog systemd.legacy_systemd_cgroup_controller=true intel_pstate=disable elevator=noop zswap.compressor=lz4"
GRUB_CMDLINE_LINUX=
# scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
But I didn’t generate the grub, so at the moment zswap.compressor = lz4 isn’t working.
free- h
[don@don-pc ~]$ free -h
total used free shared buff/cache available
Mem: 7,7Gi 2,1Gi 4,7Gi 246Mi 902Mi 5,1Gi
Swap: 0B 0B 0B
[don@don-pc ~]$