You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using LZ4 compression for memory compression. This has stopped working after kernel upgrade to 4.9 because the functionality is no longer present:
Yes, it appears that as of 4.8 the ZRAM module uses the compression functions provided by the crypto module, and enabling CRYPTO_LZ4 just causes two small modules to be built:
-rw-rw-r-- 1 phil phil 6199 Mar 7 16:00 ./lib/lz4/lz4_compress.ko
-rw-rw-r-- 1 phil phil 5879 Mar 7 16:00 ./crypto/lz4.ko
defconfigs should only include the absolute minimum number of settings required to achieve a given configuration - any defaults, or settings which are implied by others, are omitted. Fortunately the savedefconfig make rule takes care of the pruning for us.
In this case, as @ED6E0F17's post above shows, setting CRYPTO_LZ4 automatically selects LZ4_COMPRESS, so it shouldn't appear in the defconfig.
Activity
ED6E0F17 commentedon Mar 7, 2017
The required option is:
It would be good to have this in the kernel.
pelwell commentedon Mar 7, 2017
Yes, it appears that as of 4.8 the ZRAM module uses the compression functions provided by the crypto module, and enabling CRYPTO_LZ4 just causes two small modules to be built:
@popcornmix Shall I add this config option?
RadekHvizdos commentedon Mar 7, 2017
@pelwell, @ED6E0F17 are you sure we don't need ZRAM_LZ4_COMPRESS=y as well?
Thanks for looking into this.
pelwell commentedon Mar 7, 2017
defconfigs should only include the absolute minimum number of settings required to achieve a given configuration - any defaults, or settings which are implied by others, are omitted. Fortunately the savedefconfig make rule takes care of the pruning for us.
In this case, as @ED6E0F17's post above shows, setting CRYPTO_LZ4 automatically selects LZ4_COMPRESS, so it shouldn't appear in the defconfig.
popcornmix commentedon Mar 7, 2017
@pelwell no objections.
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
kernel: Bump to 4.9.14
kernel: Bump to 4.9.14
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
10 remaining items
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
monetny commentedon May 23, 2017
add CRYPTO_LZ4HC=m too, because lz4hc faster then lzo, and better then lz4
(speed decompress lzo<lz4hc=lz4)
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
config: Add CONFIG_CRYPTO_LZ4
rpi_1192_5fbb0193f0ed871b501fa302bcbcc0607088d5c9
Meson64 config 4.14
config: Add CONFIG_CRYPTO_LZ4
rpi_1191_f04cb914135c22b561a53222aefbcc399447a7a3
eccgecko commentedon May 20, 2018
Is this this able be committed to the the arch/arm64/configs/bcmrpi3_defconfig also?
rpi_1191_f04cb914135c22b561a53222aefbcc399447a7a3