Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Kernel 6.15.2-artix1-1 breaks zramen (Read 1393 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Kernel 6.15.2-artix1-1 breaks zramen

Code: [Select]
doas zramen make -s 100 -a zstd
zramen#info: zram module already loaded
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#info: Attempting to initialize free device
zramen#warn: Could not get free zram device

Nothing gets created as result, rolling back to kernel 6.14.10-artix1-1 works (as well as using the lts kernel).

Also the Artix package is still on version 0.2.1 while zramen is already on version 0.7.1 👀

Re: Kernel 6.15.2-artix1-1 breaks zramen

Reply #1
Here zRAM works:
Code: [Select]
$ uname -a
Linux linux 6.15.2-artix1-1 #1 SMP PREEMPT_DYNAMIC Wed, 11 Jun 2025 07:37:25 +0000 x86_64 GNU/Linux
$ zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lz4          31,3G   4K   44B    4K         [SWAP]

But I'm using it with rc.local:
Code: [Select]
$ cat /etc/rc.local 
#!/bin/sh

# zRAM-Swap (für stärkere, aber langsamere Kompression, "lz4" durch "zstd" ersetzen):
modprobe zram && echo lz4 > /sys/block/zram0/comp_algorithm && echo $(($(grep 'MemTotal:' /proc/meminfo|awk '{print $2}')*1/1))K > /sys/block/zram0/disksize && mkswap -qU clear /dev/zram0 && swapon -p100 /dev/zram0

exit 0

Re: Kernel 6.15.2-artix1-1 breaks zramen

Reply #2
Here zRAM works:
Code: [Select]
$ uname -a
Linux linux 6.15.2-artix1-1 #1 SMP PREEMPT_DYNAMIC Wed, 11 Jun 2025 07:37:25 +0000 x86_64 GNU/Linux
$ zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lz4          31,3G   4K   44B    4K         [SWAP]

But I'm using it with rc.local:
Code: [Select]
$ cat /etc/rc.local 
#!/bin/sh

# zRAM-Swap (für stärkere, aber langsamere Kompression, "lz4" durch "zstd" ersetzen):
modprobe zram && echo lz4 > /sys/block/zram0/comp_algorithm && echo $(($(grep 'MemTotal:' /proc/meminfo|awk '{print $2}')*1/1))K > /sys/block/zram0/disksize && mkswap -qU clear /dev/zram0 && swapon -p100 /dev/zram0

exit 0


Thanks this method works,

I will report this to zramen.



Re: Kernel 6.15.2-artix1-1 breaks zramen

Reply #5
zramen is still outdated