IOR
|
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdarg.h>
#include "option.h"
#include "utilities.h"
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h>
#include "aiori.h"
#include "ior.h"
#include "mdtest.h"
#include <mpi.h>
Go to the source code of this file.
Data Structures | |
struct | mdtest_options_t |
struct | rank_progress_t |
Macros | |
#define | FILEMODE S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH |
#define | DIRMODE S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IXOTH |
#define | RELEASE_VERS META_VERSION |
#define | TEST_DIR "test-dir" |
#define | ITEM_COUNT 25000 |
#define | LLU "%lu" |
#define | CHECK_STONE_WALL(p) (((p)->stone_wall_timer_seconds != 0) && ((GetTimeStamp() - (p)->start_time) > (p)->stone_wall_timer_seconds)) |
#define | VERBOSE(root, any, ...) VerboseMessage(root,any,__LINE__,__VA_ARGS__) |
Enumerations | |
enum | { MK_UNI_DIR, STAT_SUB_DIR, READ_SUB_DIR, RM_SUB_DIR, RM_UNI_DIR } |
Functions | |
void | VerboseMessage (int root_level, int any_level, int line, char *format,...) |
void | offset_timers (double *t, int tcount) |
void | parse_dirpath (char *dirpath_arg) |
static void | prep_testdir (int j, int dir_iter) |
static void | phase_end () |
void | unique_dir_access (int opt, char *to) |
static void | create_remove_dirs (const char *path, bool create, uint64_t itemNum) |
static void | remove_file (const char *path, uint64_t itemNum) |
static void | create_file (const char *path, uint64_t itemNum) |
void | create_remove_items_helper (const int dirs, const int create, const char *path, uint64_t itemNum, rank_progress_t *progress) |
void | collective_helper (const int dirs, const int create, const char *path, uint64_t itemNum, rank_progress_t *progress) |
void | create_remove_items (int currDepth, const int dirs, const int create, const int collective, const char *path, uint64_t dirNum, rank_progress_t *progress) |
void | mdtest_stat (const int random, const int dirs, const long dir_iter, const char *path, rank_progress_t *progress) |
void | mdtest_read (int random, int dirs, const long dir_iter, char *path) |
void | collective_create_remove (const int create, const int dirs, const int ntasks, const char *path, rank_progress_t *progress) |
void | rename_dir_test (const int dirs, const long dir_iter, const char *path, rank_progress_t *progress) |
static void | updateResult (mdtest_results_t *res, mdtest_test_num_t test, uint64_t item_count, int t, double *times, double *tBefore) |
void | directory_test (const int iteration, const int ntasks, const char *path, rank_progress_t *progress) |
int | updateStoneWallIterations (int iteration, uint64_t items_done, double tstart, uint64_t *out_max_iter) |
void | file_test_create (const int iteration, const int ntasks, const char *path, rank_progress_t *progress, double *t) |
void | file_test (const int iteration, const int ntasks, const char *path, rank_progress_t *progress) |
char const * | mdtest_test_name (int i) |
static void | StoreRankInformation (int iterations, mdtest_results_t *agg) |
static mdtest_results_t * | get_result_index (mdtest_results_t *all_results, int proc, int iter, int interation_count) |
static void | summarize_results_rank0 (int iterations, mdtest_results_t *all_results, int print_time) |
void | summarize_results (int iterations, mdtest_results_t *results) |
void | md_validate_tests () |
void | show_file_system_size (char *file_system) |
void | create_remove_directory_tree (int create, int currDepth, char *path, int dirNum, rank_progress_t *progress) |
static void | mdtest_iteration (int i, int j, MPI_Group testgroup, mdtest_results_t *summary_table) |
void | mdtest_init_args () |
mdtest_results_t * | mdtest_run (int argc, char **argv, MPI_Comm world_com, FILE *world_out) |
Variables | |
static mdtest_options_t | o |
#define CHECK_STONE_WALL | ( | p | ) | (((p)->stone_wall_timer_seconds != 0) && ((GetTimeStamp() - (p)->start_time) > (p)->stone_wall_timer_seconds)) |
Definition at line 195 of file mdtest.c.
Referenced by collective_helper(), create_remove_items_helper(), and mdtest_iteration().
#define DIRMODE S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IXOTH |
Definition at line 86 of file mdtest.c.
Referenced by create_remove_directory_tree(), create_remove_dirs(), mdtest_iteration(), and mdtest_run().
#define ITEM_COUNT 25000 |
Definition at line 89 of file mdtest.c.
Referenced by create_file(), create_remove_dirs(), mdtest_read(), mdtest_stat(), and remove_file().
#define LLU "%lu" |
Definition at line 91 of file mdtest.c.
Referenced by collective_helper(), create_file(), create_remove_dirs(), file_test(), mdtest_read(), mdtest_run(), mdtest_stat(), remove_file(), and rename_dir_test().
#define RELEASE_VERS META_VERSION |
Definition at line 87 of file mdtest.c.
Referenced by mdtest_run().
#define TEST_DIR "test-dir" |
Definition at line 88 of file mdtest.c.
Referenced by prep_testdir().
#define VERBOSE | ( | root, | |
any, | |||
... | |||
) | VerboseMessage(root,any,__LINE__,__VA_ARGS__) |
Definition at line 206 of file mdtest.c.
Referenced by collective_create_remove(), collective_helper(), create_file(), create_remove_directory_tree(), create_remove_dirs(), create_remove_items(), create_remove_items_helper(), directory_test(), file_test(), file_test_create(), md_validate_tests(), mdtest_iteration(), mdtest_read(), mdtest_run(), mdtest_stat(), offset_timers(), parse_dirpath(), remove_file(), rename_dir_test(), show_file_system_size(), summarize_results_rank0(), unique_dir_access(), and updateStoneWallIterations().
anonymous enum |
void collective_create_remove | ( | const int | create, |
const int | dirs, | ||
const int | ntasks, | ||
const char * | path, | ||
rank_progress_t * | progress | ||
) |
Definition at line 750 of file mdtest.c.
References mdtest_options_t::base_tree_name, create_remove_items(), MAX_PATHLEN, mdtest_options_t::mk_name, mdtest_options_t::nstride, mdtest_options_t::read_name, mdtest_options_t::rm_name, mdtest_options_t::shared_file, mdtest_options_t::stat_name, mdtest_options_t::testdir, mdtest_options_t::unique_chdir_dir, mdtest_options_t::unique_dir_per_task, mdtest_options_t::unique_mk_dir, mdtest_options_t::unique_read_dir, mdtest_options_t::unique_rm_dir, mdtest_options_t::unique_rm_uni_dir, mdtest_options_t::unique_stat_dir, and VERBOSE.
Referenced by directory_test(), file_test(), and file_test_create().
void collective_helper | ( | const int | dirs, |
const int | create, | ||
const char * | path, | ||
uint64_t | itemNum, | ||
rank_progress_t * | progress | ||
) |
Definition at line 446 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, CHECK_STONE_WALL, ior_aiori::close, ior_aiori::create, create_remove_dirs(), ior_aiori::delete, EWARNF, IOR_CREAT, IOR_WRONLY, rank_progress_t::items_done, rank_progress_t::items_per_dir, rank_progress_t::items_start, LLU, MAX_PATHLEN, mdtest_options_t::mk_name, NULL, rank, mdtest_options_t::rm_name, mdtest_options_t::shared_file, and VERBOSE.
Referenced by create_remove_items().
|
static |
Definition at line 348 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, ior_aiori::close, mdtest_options_t::collective_creates, ior_aiori::create, EWARNF, aiori_xfer_hint_t::filePerProc, aiori_xfer_hint_t::fsyncPerWrite, mdtest_options_t::hints, IOR_CREAT, IOR_WRONLY, ITEM_COUNT, LLU, mdtest_options_t::make_node, MAX_PATHLEN, mdtest_options_t::mk_name, ior_aiori::mknod, NULL, ior_aiori::open, mdtest_options_t::random_buffer_offset, rank, READ, mdtest_options_t::shared_file, mdtest_options_t::sync_file, update_write_memory_pattern(), VERBOSE, mdtest_options_t::verification_error, verify_memory_pattern(), mdtest_options_t::verify_write, WRITE, mdtest_options_t::write_buffer, mdtest_options_t::write_bytes, and ior_aiori::xfer.
Referenced by create_remove_items_helper().
void create_remove_directory_tree | ( | int | create, |
int | currDepth, | ||
char * | path, | ||
int | dirNum, | ||
rank_progress_t * | progress | ||
) |
Definition at line 1866 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, mdtest_options_t::depth, DIRMODE, EWARNF, FAIL, MAX_PATHLEN, ior_aiori::mkdir, NULL, ior_aiori::rmdir, and VERBOSE.
Referenced by mdtest_iteration().
|
static |
Definition at line 309 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, DIRMODE, EWARNF, ITEM_COUNT, LLU, MAX_PATHLEN, mdtest_options_t::mk_name, ior_aiori::mkdir, mdtest_options_t::rm_name, ior_aiori::rmdir, and VERBOSE.
Referenced by collective_helper(), and create_remove_items_helper().
void create_remove_items | ( | int | currDepth, |
const int | dirs, | ||
const int | create, | ||
const int | collective, | ||
const char * | path, | ||
uint64_t | dirNum, | ||
rank_progress_t * | progress | ||
) |
Definition at line 483 of file mdtest.c.
References mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, collective_helper(), create_remove_items_helper(), mdtest_options_t::depth, mdtest_options_t::items_per_dir, mdtest_options_t::leaf_only, MAX_PATHLEN, and VERBOSE.
Referenced by collective_create_remove(), directory_test(), file_test(), and file_test_create().
void create_remove_items_helper | ( | const int | dirs, |
const int | create, | ||
const char * | path, | ||
uint64_t | itemNum, | ||
rank_progress_t * | progress | ||
) |
Definition at line 420 of file mdtest.c.
References CHECK_STONE_WALL, create_file(), create_remove_dirs(), rank_progress_t::items_done, rank_progress_t::items_per_dir, rank_progress_t::items_start, remove_file(), and VERBOSE.
Referenced by create_remove_items().
void directory_test | ( | const int | iteration, |
const int | ntasks, | ||
const char * | path, | ||
rank_progress_t * | progress | ||
) |
Definition at line 912 of file mdtest.c.
References collective_create_remove(), mdtest_options_t::collective_creates, mdtest_options_t::create_only, create_remove_items(), mdtest_options_t::directory_loops, GetTimeStamp(), mdtest_options_t::items, rank_progress_t::items_done, MAX_PATHLEN, MDTEST_DIR_CREATE_NUM, MDTEST_DIR_READ_NUM, MDTEST_DIR_REMOVE_NUM, MDTEST_DIR_RENAME_NUM, MDTEST_DIR_STAT_NUM, mdtest_stat(), MK_UNI_DIR, offset_timers(), phase_end(), prep_testdir(), mdtest_options_t::random_seed, rank, mdtest_results_t::rate, mdtest_options_t::read_only, READ_SUB_DIR, mdtest_options_t::remove_only, rename_dir_test(), mdtest_options_t::rename_dirs, RM_SUB_DIR, RM_UNI_DIR, rank_progress_t::start_time, mdtest_options_t::stat_only, STAT_SUB_DIR, mdtest_options_t::stone_wall_timer_seconds, rank_progress_t::stone_wall_timer_seconds, mdtest_options_t::summary_table, testComm, mdtest_options_t::testdir, mdtest_options_t::time_unique_dir_overhead, unique_dir_access(), mdtest_options_t::unique_dir_per_task, updateResult(), and VERBOSE.
Referenced by mdtest_iteration().
void file_test | ( | const int | iteration, |
const int | ntasks, | ||
const char * | path, | ||
rank_progress_t * | progress | ||
) |
Definition at line 1184 of file mdtest.c.
References collective_create_remove(), mdtest_options_t::collective_creates, mdtest_options_t::create_only, create_remove_items(), mdtest_options_t::directory_loops, file_test_create(), GetTimeStamp(), mdtest_options_t::items, rank_progress_t::items_done, mdtest_options_t::items_per_dir, rank_progress_t::items_per_dir, rank_progress_t::items_start, LLU, MAX_PATHLEN, MDTEST_FILE_CREATE_NUM, MDTEST_FILE_READ_NUM, MDTEST_FILE_REMOVE_NUM, MDTEST_FILE_STAT_NUM, mdtest_read(), mdtest_stat(), mdtest_options_t::num_dirs_in_tree_calc, offset_timers(), phase_end(), prep_testdir(), mdtest_options_t::random_seed, rank, mdtest_results_t::rate, mdtest_options_t::read_only, READ_SUB_DIR, ReadStoneWallingIterations(), mdtest_options_t::remove_only, RM_SUB_DIR, RM_UNI_DIR, rank_progress_t::start_time, mdtest_options_t::stat_only, STAT_SUB_DIR, mdtest_options_t::stone_wall_timer_seconds, rank_progress_t::stone_wall_timer_seconds, mdtest_results_t::stonewall_item_sum, mdtest_results_t::stonewall_time, mdtest_options_t::stoneWallingStatusFile, mdtest_options_t::summary_table, testComm, mdtest_options_t::testdir, mdtest_options_t::time_unique_dir_overhead, unique_dir_access(), mdtest_options_t::unique_dir_per_task, updateResult(), VERBOSE, and WARN.
Referenced by mdtest_iteration().
void file_test_create | ( | const int | iteration, |
const int | ntasks, | ||
const char * | path, | ||
rank_progress_t * | progress, | ||
double * | t | ||
) |
Definition at line 1132 of file mdtest.c.
References collective_create_remove(), mdtest_options_t::collective_creates, create_remove_items(), mdtest_options_t::directory_loops, mdtest_options_t::items, rank_progress_t::items_done, mdtest_options_t::items_per_dir, rank_progress_t::items_per_dir, rank_progress_t::items_start, MAX_PATHLEN, MK_UNI_DIR, offset_timers(), prep_testdir(), rank, mdtest_options_t::stone_wall_timer_seconds, rank_progress_t::stone_wall_timer_seconds, mdtest_options_t::stoneWallingStatusFile, StoreStoneWallingIterations(), testComm, mdtest_options_t::testdir, mdtest_options_t::time_unique_dir_overhead, unique_dir_access(), mdtest_options_t::unique_dir_per_task, updateStoneWallIterations(), and VERBOSE.
Referenced by file_test().
|
static |
Definition at line 1428 of file mdtest.c.
Referenced by summarize_results(), and summarize_results_rank0().
void md_validate_tests | ( | ) |
Definition at line 1691 of file mdtest.c.
References mdtest_options_t::barriers, mdtest_options_t::branch_factor, mdtest_options_t::collective_creates, mdtest_options_t::create_only, mdtest_options_t::depth, mdtest_options_t::dirs_only, FAIL, mdtest_options_t::files_only, mdtest_options_t::items, mdtest_options_t::items_per_dir, mdtest_options_t::make_node, MDTEST_LAST_NUM, mdtest_test_name(), mdtest_options_t::nstride, NULL, mdtest_options_t::path_count, rank, mdtest_options_t::read_bytes, mdtest_options_t::read_only, mdtest_options_t::remove_only, mdtest_options_t::rename_dirs, mdtest_options_t::saveRankDetailsCSV, mdtest_options_t::shared_file, mdtest_options_t::size, mdtest_options_t::stat_only, mdtest_options_t::stone_wall_timer_seconds, mdtest_options_t::unique_dir_per_task, VERBOSE, mdtest_options_t::verify_read, WARN, and mdtest_options_t::write_bytes.
Referenced by mdtest_run().
void mdtest_init_args | ( | ) |
Definition at line 2150 of file mdtest.c.
References mdtest_options_t::barriers.
Referenced by mdtest_run().
|
static |
Definition at line 1936 of file mdtest.c.
References ior_aiori::access, mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::base_tree_name, CHECK_STONE_WALL, mdtest_options_t::collective_creates, mdtest_options_t::create_only, create_remove_directory_tree(), DelaySecs(), mdtest_options_t::directory_loops, directory_test(), DIRMODE, mdtest_options_t::dirs_only, EWARNF, file_test(), mdtest_options_t::files_only, GetTimeStamp(), mdtest_results_t::items, mdtest_options_t::items_per_dir, rank_progress_t::items_per_dir, rank_progress_t::items_start, MDTEST_TREE_CREATE_NUM, MDTEST_TREE_REMOVE_NUM, mdtest_options_t::mk_name, ior_aiori::mkdir, mdtest_options_t::nstride, NULL, mdtest_options_t::num_dirs_in_tree, mdtest_options_t::path_count, mdtest_options_t::pre_delay, prep_testdir(), rank, mdtest_results_t::rate, mdtest_options_t::read_name, mdtest_options_t::remove_only, mdtest_options_t::rm_name, ior_aiori::rmdir, mdtest_options_t::shared_file, mdtest_options_t::size, mdtest_options_t::stat_name, rank_progress_t::stone_wall_timer_seconds, mdtest_results_t::stonewall_last_item, testComm, mdtest_options_t::testdir, mdtest_results_t::time, mdtest_options_t::unique_chdir_dir, mdtest_options_t::unique_dir_per_task, mdtest_options_t::unique_mk_dir, mdtest_options_t::unique_read_dir, mdtest_options_t::unique_rm_dir, mdtest_options_t::unique_rm_uni_dir, mdtest_options_t::unique_stat_dir, and VERBOSE.
Referenced by mdtest_run().
void mdtest_read | ( | int | random, |
int | dirs, | ||
const long | dir_iter, | ||
char * | path | ||
) |
Definition at line 635 of file mdtest.c.
References aligned_buffer_alloc(), aligned_buffer_free(), mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, ior_aiori::close, mdtest_options_t::depth, mdtest_options_t::directory_loops, EWARNF, mdtest_options_t::gpu_memory_flags, ITEM_COUNT, mdtest_options_t::items, mdtest_options_t::items_per_dir, mdtest_options_t::leaf_only, LLU, MAX_PATHLEN, mdtest_options_t::nstride, NULL, mdtest_options_t::num_dirs_in_tree, ior_aiori::open, mdtest_options_t::rand_array, mdtest_options_t::random_buffer_offset, rank, READ, mdtest_options_t::read_bytes, mdtest_options_t::read_name, mdtest_options_t::shared_file, mdtest_options_t::size, VERBOSE, mdtest_options_t::verification_error, verify_memory_pattern(), mdtest_options_t::verify_read, and ior_aiori::xfer.
Referenced by file_test().
mdtest_results_t* mdtest_run | ( | int | argc, |
char ** | argv, | ||
MPI_Comm | world_com, | ||
FILE * | world_out | ||
) |
Definition at line 2158 of file mdtest.c.
References ior_aiori::access, aiori_select(), aiori_supported_apis(), aiori_warning_as_errors, airoi_create_all_module_options(), airoi_update_module_options(), aligned_buffer_alloc(), aligned_buffer_free(), mdtest_options_t::api, mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::barriers, mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, mdtest_options_t::call_sync, ior_aiori::check_params, mdtest_options_t::collective_creates, mdtest_options_t::create_only, mdtest_options_t::depth, mdtest_options_t::directory_loops, DIRMODE, mdtest_options_t::dirs_only, ior_aiori::enable_mdtest, ERR, EWARNF, FAIL, mdtest_options_t::filenames, mdtest_options_t::files_only, ior_aiori::finalize, generate_memory_pattern(), GetNumNodes(), GetNumTasksOnNode0(), global_options, mdtest_options_t::gpu_memory_flags, mdtest_options_t::hints, mdtest_options_t::hostname, init_clock(), ior_aiori::initialize, mdtest_options_t::items, mdtest_options_t::items_per_dir, LAST_OPTION, mdtest_options_t::leaf_only, LLU, mdtest_options_t::make_node, MAX_PATHLEN, md_validate_tests(), MDTEST, mdtest_init_args(), mdtest_iteration(), mdtest_options_t::mk_name, ior_aiori::mkdir, options_all_t::modules, mdtest_options_t::nstride, NULL, mdtest_options_t::num_dirs_in_tree, mdtest_options_t::num_dirs_in_tree_calc, OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, option_parse(), options, out_logfile, out_resultfile, parse_dirpath(), mdtest_options_t::path_count, mdtest_options_t::pid, mdtest_options_t::pre_delay, mdtest_options_t::print_all_proc, mdtest_options_t::print_rate_and_time, mdtest_options_t::print_time, PrintTimestamp(), QueryNodeMapping(), mdtest_options_t::rand_array, mdtest_options_t::random_buffer_offset, mdtest_options_t::random_seed, rank, mdtest_options_t::read_bytes, mdtest_options_t::read_name, mdtest_options_t::read_only, RELEASE_VERS, mdtest_options_t::remove_only, mdtest_options_t::rm_name, ior_aiori::rmdir, safeMalloc(), mdtest_options_t::saveRankDetailsCSV, mdtest_options_t::shared_file, ShowFileSystemSize(), mdtest_options_t::size, mdtest_options_t::stat_name, mdtest_options_t::stat_only, mdtest_options_t::stone_wall_timer_seconds, mdtest_options_t::stoneWallingStatusFile, StoreRankInformation(), summarize_results(), mdtest_options_t::summary_table, mdtest_options_t::sync_file, testComm, mdtest_options_t::testdirpath, mdtest_options_t::time_unique_dir_overhead, mdtest_options_t::uid, mdtest_options_t::unique_dir_per_task, verbose, VERBOSE, mdtest_options_t::verification_error, mdtest_options_t::verify_read, mdtest_options_t::verify_write, mdtest_options_t::write_buffer, mdtest_options_t::write_bytes, and ior_aiori::xfer_hints.
Referenced by main().
void mdtest_stat | ( | const int | random, |
const int | dirs, | ||
const long | dir_iter, | ||
const char * | path, | ||
rank_progress_t * | progress | ||
) |
Definition at line 553 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, mdtest_options_t::depth, mdtest_options_t::directory_loops, EWARNF, ITEM_COUNT, mdtest_options_t::items, mdtest_options_t::items_per_dir, mdtest_options_t::leaf_only, LLU, MAX_PATHLEN, mdtest_options_t::num_dirs_in_tree, mdtest_options_t::rand_array, ior_aiori::stat, mdtest_options_t::stat_name, and VERBOSE.
Referenced by directory_test(), and file_test().
char const* mdtest_test_name | ( | int | i | ) |
Definition at line 1355 of file mdtest.c.
References MDTEST_DIR_CREATE_NUM, MDTEST_DIR_READ_NUM, MDTEST_DIR_REMOVE_NUM, MDTEST_DIR_RENAME_NUM, MDTEST_DIR_STAT_NUM, MDTEST_FILE_CREATE_NUM, MDTEST_FILE_READ_NUM, MDTEST_FILE_REMOVE_NUM, MDTEST_FILE_STAT_NUM, MDTEST_TREE_CREATE_NUM, MDTEST_TREE_REMOVE_NUM, and NULL.
Referenced by md_validate_tests(), and summarize_results_rank0().
void offset_timers | ( | double * | t, |
int | tcount | ||
) |
Definition at line 225 of file mdtest.c.
References GetTimeStamp(), and VERBOSE.
Referenced by directory_test(), file_test(), and file_test_create().
void parse_dirpath | ( | char * | dirpath_arg | ) |
Definition at line 237 of file mdtest.c.
References mdtest_options_t::filenames, NULL, mdtest_options_t::path_count, safeMalloc(), and VERBOSE.
Referenced by mdtest_run().
|
static |
Definition at line 275 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::barriers, mdtest_options_t::call_sync, FAIL, ior_aiori::sync, and testComm.
Referenced by directory_test(), and file_test().
|
static |
Definition at line 266 of file mdtest.c.
References TEST_DIR, mdtest_options_t::testdir, and mdtest_options_t::testdirpath.
Referenced by directory_test(), file_test(), file_test_create(), and mdtest_iteration().
|
static |
Definition at line 332 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, ior_aiori::delete, ITEM_COUNT, LLU, MAX_PATHLEN, rank, mdtest_options_t::rm_name, mdtest_options_t::shared_file, and VERBOSE.
Referenced by create_remove_items_helper().
void rename_dir_test | ( | const int | dirs, |
const long | dir_iter, | ||
const char * | path, | ||
rank_progress_t * | progress | ||
) |
Definition at line 828 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, mdtest_options_t::base_tree_name, mdtest_options_t::branch_factor, mdtest_options_t::depth, mdtest_options_t::directory_loops, EWARNF, mdtest_options_t::items, mdtest_options_t::items_per_dir, mdtest_options_t::leaf_only, LLU, MAX_PATHLEN, NULL, mdtest_options_t::num_dirs_in_tree, ior_aiori::rename, mdtest_options_t::stat_name, VERBOSE, and WARN.
Referenced by directory_test().
void show_file_system_size | ( | char * | file_system | ) |
Definition at line 1810 of file mdtest.c.
References mdtest_options_t::backend, mdtest_options_t::backend_options, ior_aiori_statfs::f_bfree, ior_aiori_statfs::f_blocks, ior_aiori_statfs::f_bsize, ior_aiori_statfs::f_ffree, ior_aiori_statfs::f_files, FAIL, MAX_PATHLEN, NULL, ior_aiori::statfs, VERBOSE, and WARN.
|
static |
Definition at line 1376 of file mdtest.c.
References FAIL, mdtest_results_t::items, mdtest_options_t::items, MDTEST_LAST_NUM, MDTEST_TREE_CREATE_NUM, NULL, rank, safeMalloc(), mdtest_options_t::saveRankDetailsCSV, mdtest_options_t::size, mdtest_options_t::summary_table, testComm, mdtest_results_t::time, mdtest_results_t::time_before_barrier, and WARN.
Referenced by mdtest_run().
void summarize_results | ( | int | iterations, |
mdtest_results_t * | results | ||
) |
Definition at line 1618 of file mdtest.c.
References get_result_index(), mdtest_results_t::items, MDTEST_LAST_NUM, NULL, mdtest_options_t::print_rate_and_time, mdtest_options_t::print_time, rank, mdtest_results_t::rate, safeMalloc(), mdtest_options_t::size, mdtest_results_t::stonewall_item_min, mdtest_results_t::stonewall_item_sum, mdtest_results_t::stonewall_last_item, mdtest_results_t::stonewall_time, summarize_results_rank0(), mdtest_options_t::summary_table, testComm, mdtest_results_t::time, and mdtest_results_t::time_before_barrier.
Referenced by mdtest_run().
|
static |
Definition at line 1432 of file mdtest.c.
References mdtest_options_t::dirs_only, mdtest_options_t::files_only, get_result_index(), MDTEST_FILE_CREATE_NUM, MDTEST_LAST_NUM, mdtest_test_name(), MDTEST_TREE_CREATE_NUM, min, NULL, out_logfile, mdtest_options_t::print_all_proc, mdtest_results_t::rate, mdtest_results_t::rate_before_barrier, mdtest_options_t::size, mdtest_options_t::summary_table, mdtest_results_t::time, mdtest_results_t::time_before_barrier, and VERBOSE.
Referenced by summarize_results().
void unique_dir_access | ( | int | opt, |
char * | to | ||
) |
Definition at line 293 of file mdtest.c.
References MK_UNI_DIR, READ_SUB_DIR, RM_SUB_DIR, RM_UNI_DIR, STAT_SUB_DIR, testComm, mdtest_options_t::testdir, mdtest_options_t::unique_chdir_dir, mdtest_options_t::unique_read_dir, mdtest_options_t::unique_rm_dir, mdtest_options_t::unique_rm_uni_dir, mdtest_options_t::unique_stat_dir, and VERBOSE.
Referenced by directory_test(), file_test(), and file_test_create().
|
static |
Definition at line 899 of file mdtest.c.
References mdtest_results_t::items, mdtest_options_t::items, mdtest_results_t::rate, mdtest_results_t::rate_before_barrier, mdtest_results_t::stonewall_last_item, mdtest_results_t::time, and mdtest_results_t::time_before_barrier.
Referenced by directory_test(), and file_test().
int updateStoneWallIterations | ( | int | iteration, |
uint64_t | items_done, | ||
double | tstart, | ||
uint64_t * | out_max_iter | ||
) |
Definition at line 1106 of file mdtest.c.
References GetTimeStamp(), mdtest_options_t::items, MDTEST_FILE_CREATE_NUM, mdtest_options_t::size, mdtest_results_t::stonewall_item_min, mdtest_results_t::stonewall_item_sum, mdtest_results_t::stonewall_last_item, mdtest_results_t::stonewall_time, mdtest_options_t::summary_table, testComm, and VERBOSE.
Referenced by file_test_create().
void VerboseMessage | ( | int | root_level, |
int | any_level, | ||
int | line, | ||
char * | format, | ||
... | |||
) |
Definition at line 207 of file mdtest.c.
References out_logfile, rank, and verbose.
|
static |