Whamcloud - gitweb
EX-7683 utils: update handling of compr level for lz4
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 20 Jun 2023 15:49:14 +0000 (15:49 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Jul 2023 10:01:24 +0000 (10:01 +0000)
commit653a230ef58c29858be29f43c559cd4cdea06969
treee3a6300a9efd9e93712f6ffde9e4f1e87c89a9e0
parentf1ac6aa3ab2ecb03bd944cec092b74543bb6f060
EX-7683 utils: update handling of compr level for lz4

The way lz4 compression level or acceleration factor is handled needs
to be adapted in order to match what is provided by the lz4 userspace
tool:
- any level between 0 and 2 is interpreted as the default lz4
  acceleration factor of 1;
- any level from 3 and up to 16 is interpreted as a compression level
  for internal lz4hc. Increasing the compression level trades CPU
  time for improved compression ratio;
- acceleration factor can be specified for the lz4fast compression
  type, from 1 to 26. This acceleration factor trades compression
  ratio for faster speed.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I4711217c1a6601f29f78d262567da5998f657fc9
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51380
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
12 files changed:
lustre/include/lustre/lustreapi.h
lustre/include/lustre_crypto.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/osc/osc_compress.c
lustre/osc/osc_internal.h
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-pfl.sh
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c