Need help setting zram as swap

I have zram installed and it seems to be running, but for some reason it`s not being used.
What am i doing wrong ?

cat /proc/swaps
Filename                                Type            Size            Used            Priority
/dev/zram0                              partition       2047996         0               100

Wait longer and run memory hogs like adguardhome

Looks like It is not needed (so far), is there any issue you are experiencing?

1 Like


Zram is used only when the main memory is not enough

1 Like

any way to make it run first from zram and then of the main memory ?

Zram - additional memory if ordinary memory ends
It is better when the usual RAM is used

It works exactly opposite. It stands as swap before disk swap and software trick will save gears from wearing off. You can make it anomalous by setting vm.swappiness above 100 to aggressively swap. Do not save that setting though, router will likely need failsafe reset if not booting.

Understood, thank you for the info.