Display outlier host names

Display host names when using the -j argument (outlierThreshold) so
that IOR could help to better identify slow nodes:

WARNING: for client02, task 6, write elapsed transfer time is 65.738326
master
Jean-Yves VET 2020-03-17 16:31:56 +01:00
parent 657ff8ad8f
commit a21137be3e
1 changed files with 7 additions and 2 deletions

View File

@ -255,8 +255,13 @@ DisplayOutliers(int numTasks,
strcpy(accessString, "read");
}
if (fabs(timerVal - mean) > (double)outlierThreshold) {
fprintf(out_logfile, "WARNING: for task %d, %s %s is %f\n",
rank, accessString, timeString, timerVal);
char hostname[MAX_STR];
int ret = gethostname(hostname, MAX_STR);
if (ret != 0)
strcpy(hostname, "unknown");
fprintf(out_logfile, "WARNING: for %s, task %d, %s %s is %f\n",
hostname, rank, accessString, timeString, timerVal);
fprintf(out_logfile, " (mean=%f, stddev=%f)\n", mean, sd);
fflush(out_logfile);
}