Skip to content

Please re-enable LZ4 in 4.9 kernel config #1875

Closed

Description

@RadekHvizdos

Hi all,

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:

diff 4.4.txt 4.9.txt
4d3
< CONFIG_ZRAM_LZ4_COMPRESS=y
8d6
< CONFIG_LZ4_COMPRESS=m

Please re-enable these options.

Thank you.

Activity

  1. ED6E0F17 commented on Mar 7, 2017

    @ED6E0F17

    The required option is:

    config CRYPTO_LZ4
    	tristate "LZ4 compression algorithm"
    	select CRYPTO_ALGAPI
    	select LZ4_COMPRESS
    	select LZ4_DECOMPRESS
    	help
    	  This is the LZ4 algorithm.
    

    It would be good to have this in the kernel.

  2. pelwell commented on Mar 7, 2017

    @pelwell
    Contributor

    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
    

    @popcornmix Shall I add this config option?

  3. RadekHvizdos commented on Mar 7, 2017

    @RadekHvizdos
    Author

    @pelwell, @ED6E0F17 are you sure we don't need ZRAM_LZ4_COMPRESS=y as well?

    Thanks for looking into this.

  4. pelwell commented on Mar 7, 2017

    @pelwell
    Contributor

    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.

  5. popcornmix commented on Mar 7, 2017

    @popcornmix
    Collaborator

    @pelwell no objections.

  6. added a commit that references this issue on Mar 7, 2017
  7. added a commit that references this issue on Mar 12, 2017
  8. 10 remaining items

  9. monetny commented on May 23, 2017

    @monetny

    add CRYPTO_LZ4HC=m too, because lz4hc faster then lzo, and better then lz4
    (speed decompress lzo<lz4hc=lz4)

  10. added a commit that references this issue on May 24, 2017
  11. added a commit that references this issue on Jul 12, 2017
  12. added a commit that references this issue on Oct 29, 2017
  13. added a commit that references this issue on Nov 15, 2017
  14. added a commit that references this issue on Nov 21, 2017
  15. eccgecko commented on May 20, 2018

    @eccgecko

    Is this this able be committed to the the arch/arm64/configs/bcmrpi3_defconfig also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions