Whamcloud - gitweb
EX-7717 lipe: Add simple compression ratio statistics
authorVitaliy Kuznetsov <vkuznetsov@ddn.com>
Tue, 12 Dec 2023 14:49:27 +0000 (15:49 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 8 Feb 2024 08:53:21 +0000 (08:53 +0000)
commit216d75994875f7bdf536ec3d34a0af87470f6ea5
treea853a9cd630a62b0e23a7fb5b71620afa7129c1c
parentca161aa1fccdd0ef4da6fc7ba464dbf9dbcdebd7
EX-7717 lipe: Add simple compression ratio statistics

This patch adds a new table to display data
compression ratio in overall statistics.

The new table to display compression ratio (for regular files)
will have the following column values:
0. Compression ratio range;
1. Count of files in range;
2. Number of files in range as a percent of total
   number of files;
3. Number of files in this range or smaller as
   a % of total # of files;
4. Total compression size of files in range;
5. Total compression size of files in range as a % of
   total compression size of files;
6. Total compression size of files in this range or
   smaller as a % of total compression size of files;
7. Minimum value in range (ratio);
8. Maximum value in range (ratio).

The columns in the table are numbered from 0 to 8 for a better
understanding of the table without the need to name the
columns with long text.

This PR also changes some variable types to the "double" type
for correct calculation of values and to avoid duplication of
variables with the same semantic value.

The output of information in reports with the .out
extension has also been improved.

Test-Parameters: trivial testlist=sanity-lipe-scan3
Signed-off-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Change-Id: I242ddb9c4132a7fce81508dadacf8e2b01e3cead
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52372
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lipe/src/lipe_scan3/ls3_stats.c
lipe/src/lipe_scan3/ls3_stats.h
lustre/tests/sanity-lipe-scan3.sh