From: Vincent Fu Date: Fri, 14 Jul 2023 16:58:34 +0000 (-0400) Subject: stat: add diskutil aggregated sectors to normal output X-Git-Tag: fio-3.36~60 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bb08a260413e54465f370523ae26a1bebb42308c;p=fio.git stat: add diskutil aggregated sectors to normal output Since we are now collecting sectors in the disk utilization data we should include them in the aggregated data as well. I tested this with an LVM mirror. I also tested this on an mdadm mirror but all the aggregated and slave data was zero. Fixes: 75cbc26d500fc5f7e36f6203c9b8e08b9c6f007c ("diskutil: Report how many sectors have been read and written") Signed-off-by: Vincent Fu --- diff --git a/stat.c b/stat.c index fc73930d..7fad73d1 100644 --- a/stat.c +++ b/stat.c @@ -957,11 +957,13 @@ static void show_agg_stats(struct disk_util_agg *agg, int terse, return; if (!terse) { - log_buf(out, ", aggrios=%llu/%llu, aggrmerge=%llu/%llu, " - "aggrticks=%llu/%llu, aggrin_queue=%llu, " - "aggrutil=%3.2f%%", + log_buf(out, ", aggrios=%llu/%llu, aggsectors=%llu/%llu, " + "aggrmerge=%llu/%llu, aggrticks=%llu/%llu, " + "aggrin_queue=%llu, aggrutil=%3.2f%%", (unsigned long long) agg->ios[0] / agg->slavecount, (unsigned long long) agg->ios[1] / agg->slavecount, + (unsigned long long) agg->sectors[0] / agg->slavecount, + (unsigned long long) agg->sectors[1] / agg->slavecount, (unsigned long long) agg->merges[0] / agg->slavecount, (unsigned long long) agg->merges[1] / agg->slavecount, (unsigned long long) agg->ticks[0] / agg->slavecount,