Most android roms have only one zram device [zram0] but linux distros use many zram like zram0, zram1 .... Why is it like that? Does using many zram consumes more power or adds complexity? what's the exact reason?
Why does android has only one zram but linux distros use many zram equal to the number of cpu cores?
Asked
Active
Viewed 402 times
zram.num_devices=<NUM>
parameter in kernel commandline. After boot do:echo -n <SIZE> >/sys/block/zram[N]/disksize; mkswap /dev/block/zram[N]; swapon /dev/block/zram[N]
. That's all. – Irfan Latif Feb 04 '21 at 16:13