Skip to content

fix(dmb): fix latency units/source (lat_ns/1e6), bandwidth units (bw_bytes/1e6), and enable lat_percentiles - #235

Merged
vipnydav merged 3 commits into
mainfrom
fix/dmb-result-aggregator-metrics
Nov 25, 2026
Merged

vipnydav merged 3 commits into
mainfrom
fix/dmb-result-aggregator-metrics

Conversation

@vipnydav

@vipnydav vipnydav commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes metric extraction and aggregation bugs in distributed-micro-benchmark/helpers/result_aggregator.py and enables total-latency percentiles in the FIO templates:

  1. Use lat_ns instead of clat_ns and fix 1,000x unit bug: With libaio on FUSE, I/O blocks in io_submit() (slat_ns), leaving clat_ns with only microseconds of overhead at iodepth=1. Also fixes divisor from 1000.0 to 1_000_000.0 (FIO reports both lat_ns and clat_ns in nanoseconds, not microseconds).
  2. Add lat_percentiles=1 to the .fio templates: FIO only emits percentile under clat_ns by default, so lat_percentiles=1 is needed to populate p50, p90, and p99 under lat_ns.
  3. Fix 2.4% bandwidth unit mismatch: Uses bw_bytes / 1_000_000.0 (with bw * 1024 / 1_000_000.0 fallback) for decimal MB/s instead of dividing KiB/s bw by 1000.0.
  4. Fix min/max and iterations: Uses min()/max() across iterations instead of averaging them, and counts only valid parsed FIO JSON files.

Tracking Bug

b/590453297

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the FIO result aggregator to extract bandwidth in decimal MB/s and prefer total latency (lat_ns) over completion latency (clat_ns) to better handle synchronous blocking on FUSE. It also corrects the aggregation logic by using minimum and maximum functions for latency bounds instead of averages, tracks valid iterations correctly, adds comprehensive unit tests, and enables lat_percentiles=1 in several FIO configuration files. There are no review comments, and I have no additional feedback to provide.

@PranjalC100
PranjalC100 force-pushed the fix/dmb-result-aggregator-metrics branch from 2c7171f to 5ef84c1 Compare November 25, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants