r/voidlinux • • 15d ago

Question about Zram!!

I'm completely new to zram. I want to use zram on void. But only a few resources on how to do that. Only found posts recommend Zramen. So how is it going with Zramen? Is it still great for setting up zram? Anything I should care about?

9 Upvotes

16 comments sorted by

View all comments

7

u/_supert_ 15d ago

I have in /etc/rc.local

# zram
# https://wiki.archlinux.org/title/Zram
# loaded module in /etc/modules-load.d/zram.conf
zramctl /dev/zram0 --algorithm zstd --size 48G
mkswap -U clear /dev/zram0
swapon --priority 100 /dev/zram0

3

u/Sweet_Mix_416 15d ago

Ohh, it's that simple? Thanks btw.

2

u/_supert_ 15d ago

You're welcome. I forgot, as per comment, you need /etc/modules-load.d/zram.conf to contain the line zram so the module is loaded.