Whamcloud - gitweb
EX-8362 scripts: Improve estimated ratio
authorRaphael Druon <rdruon@ddn.com>
Thu, 19 Oct 2023 15:05:25 +0000 (09:05 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:43:42 +0000 (21:43 +0000)
commit7e6f144739e0d4a3fdc960eb2c1d78c897d246f9
tree1bcfefe655505fa915f1e218e21a8a0b30c5676a
parentfd2e25765d5083340f5628bc1a0d224884ff7128
EX-8362 scripts: Improve estimated ratio

ll_compression_scan does not take in account the size of the
sampled files, this might lead to uncorrect estimated ratio for non
homogeneous file.

This patch apply the compression ratio estimated with the sampled data
and applies it to the entire file size, assuming the file will have
the same compression ratio across it.

Test-Parameters: trivial
Signed-off-by: Raphael Druon <rdruon@ddn.com>
Change-Id: Ic4a26460e17c666b9edf4c0d8d450a06fad5920f
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52759
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/scripts/ll_compression_scan