1

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?

1
  • 1
    It's a debatable topic whether or not multiple ZRAM devices add any benefit. E.g. see this: askubuntu.com/questions/1171950. Apart from that, you can create as many ZRAM devices as you want on Android too. Pass 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. Commented Feb 4, 2021 at 16:13

0

You must log in to answer this question.

Browse other questions tagged .