Whamcloud - gitweb
EX-8362 scripts: improve ll_compression_scan estimate
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 27 Jan 2024 20:08:33 +0000 (12:08 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 29 Jan 2024 08:54:39 +0000 (08:54 +0000)
commit21c73312a345673e108beedbad1fa2a1d7a8dbff
tree5bf9bd4717ed3ae2f636bf56e90b14aa20643aa0
parentcdd92eaf7176eb448e1960cce376e60ea21a6dc2
EX-8362 scripts: improve ll_compression_scan estimate

Improve ll_compression_scan script to give a better estimate of
actual compression ratios.
- add a '-d' debug option for verbose output during testing
- log and report incompressible small files < 4096
- log and report incompressible file count and size
- include small/incompressible/large files in compression estimate
- add a correction factor to calculations for safety margin

Change-Id: If561b0273e38e4821de228c81291859c7bb1a0d2
Test-Parameters: trivial testlist=sanity-compr env=ONLY=1007,ONLY_REPEAT=10
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53824
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/scripts/ll_compression_scan
lustre/tests/sanity-compr.sh