Skip to content

Commit 9e27103

Browse files
committed
client/server: enable "All clients" latency percentiles
The ?lat_percentile toggles and list of percentiles to report from the thread_stat payload have not been propagated to the overall summary report. Enable "All clients" latency percentile reporting by arbitrarily using the toggles and percentile list from the first thread_stat payload sent from the server. Signed-off-by: Vincent Fu <[email protected]>
1 parent 9224572 commit 9e27103

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

client.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,16 @@ static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd)
11281128
sum_thread_stats(&client_ts, &p->ts);
11291129
sum_group_stats(&client_gs, &p->rs);
11301130

1131+
if (!client_ts.members) {
1132+
/* Arbitrarily use the percentile toggles and percentile list
1133+
* from the first thread_stat that comes our way */
1134+
client_ts.slat_percentiles = p->ts.slat_percentiles;
1135+
client_ts.clat_percentiles = p->ts.clat_percentiles;
1136+
client_ts.lat_percentiles = p->ts.lat_percentiles;
1137+
1138+
for (int i = 0; i < FIO_IO_U_LIST_MAX_LEN; i++)
1139+
client_ts.percentile_list[i] = p->ts.percentile_list[i];
1140+
}
11311141
client_ts.members++;
11321142
client_ts.thread_number = p->ts.thread_number;
11331143
client_ts.groupid = p->ts.groupid;

0 commit comments

Comments
 (0)