novaspirit / rpi_zram

script to enable zram for raspberry pi
351 stars 96 forks source link

zram script for 1 core type and lz4 compress algorythm. #10

Closed yutayu closed 5 years ago

yutayu commented 5 years ago

zram script for 1 core type and lz4 compress algorythm.

yutayu commented 5 years ago

Caveats/Cons Prior to kernel 3.15, each zram device contains it's own compression buffer, memory pools and other metadata as well as per-device locks. This can become a serious bottleneck for multi-core machines. To work around this problem, zram is capable of initializing multiple devices. For this reason, the recommended amount of devices for swap is 1 per cpu core for kernels prior to 3.15.

https://wiki.gentoo.org/wiki/Zram

yutayu commented 5 years ago

In 3.15 > , kernel can hold 1 zram directory per system.

yutayu commented 5 years ago

Maybe, This causes problem. sorry.