Changed the behavior of shift in mdtest to mimic that in IOR so that it shifts by _entire nodes_ not by ranks.
parent
76f6bb6e42
commit
7981fc70b1
10
src/mdtest.c
10
src/mdtest.c
|
@ -1362,7 +1362,7 @@ void print_help (void) {
|
|||
"\t-p: pre-iteration delay (in seconds)\n"
|
||||
"\t-r: only remove files or directories left behind by previous runs\n"
|
||||
"\t-R: randomly stat files (optional argument for random seed)\n"
|
||||
"\t-s: stride between the number of tasks for each test\n"
|
||||
"\t-s: stride between the number of nodes for each test\n"
|
||||
"\t-S: shared file access (file only, no directories)\n"
|
||||
"\t-t: time unique working directory overhead\n"
|
||||
"\t-T: only stat files/dirs\n"
|
||||
|
@ -2191,7 +2191,8 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
|
|||
pid = getpid();
|
||||
uid = getuid();
|
||||
|
||||
nodeCount = size / CountTasksPerNode(testComm);
|
||||
tasksPerNode = CountTasksPerNode(testComm);
|
||||
nodeCount = size / tasksPerNode;
|
||||
|
||||
if (rank == 0) {
|
||||
fprintf(out_logfile, "-- started at %s --\n\n", PrintTimestamp());
|
||||
|
@ -2267,6 +2268,11 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
|
|||
fflush( out_logfile );
|
||||
}
|
||||
|
||||
/* set the shift to mimic IOR and shift by procs per node */
|
||||
if (nstride > 0) {
|
||||
nstride *= tasksPerNode;
|
||||
}
|
||||
|
||||
/* setup total number of items and number of items per dir */
|
||||
if (depth <= 0) {
|
||||
num_dirs_in_tree = 1;
|
||||
|
|
Loading…
Reference in New Issue