class IORPerformance(TestBase): header = [ 'task', 'all_write_max', 'all_write_min', 'all_write_mean', 'all_read_max', 'all_read_min', 'all_read_mean' ] def __init__(self): super(IORPerformance, self).__init__() self._options = None self._report = RetPrint().get_report() self._report.add_header('ior', self.header) def initialize(self, options): self._options = options def run(self): for option in self._options: json_summary = self._run_wapper(option['ior_option'], option['mpi_option']) json_summary['task'] = option['name'] self._run_report(json_summary) def _run_wapper(self, ior_option, mpi_option): wapper = IORWapper(ior_option, mpi_option) wapper.run() json_summary = wapper.get_json_summary() return json_summary def _run_report(self, data): row = [] for i in self.header: row.append(data[i]) self._report.add_row('ior', row)
class MDTestPerformance(TestBase): header = ['task', 'dir_creation', 'dir_stat', 'dir_removal', 'file_creation', 'file_stat', 'file_remove', 'tree_create', 'tree_remove'] def __init__(self): super(MDTestPerformance, self).__init__() self._options = None self._report = RetPrint().get_report() self._report.add_header('mdtest', self.header) def initialize(self, options): self._options = options def run(self): for option in self._options: json_summary = self._run_wapper(option['mdtest_option'], option['mpi_option']) json_summary['task'] = option['name'] self._run_report(json_summary) def _run_wapper(self, mdtest_option, mpi_option): wapper = MDTestWapper(mdtest_option, mpi_option) wapper.run() json_summary = wapper.get_json_summary() return json_summary def _run_report(self, data): row = [] for i in self.header: row.append(data[i]) self._report.add_row('mdtest', row)
class FIOPerformance(TestBase): header = ['task', 'bs', 'iodepth', 'num_jobs', 'iops_avg', 'bw_avg', 'lat_avg', 'lat_min', 'lat_max', 'stdev', '99'] def __init__(self): super(FIOPerformance, self).__init__() self._options = None self._report = RetPrint().get_report() self._report.add_header('fio', self.header) def initialize(self, options): self._options = options def run(self): for option in self._options: json_summary = self._run_wapper(option['fio_option'], option['mpi_option']) json_summary['task'] = option['name'] self._run_report(json_summary) def _run_wapper(self, fio_option, mpi_option): wapper = FIOWapper(fio_option, mpi_option) wapper.run() json_summary = wapper.get_json_summary() return json_summary def _run_report(self, data): row = [] for i in self.header: row.append(data[i]) self._report.add_row('fio', row)
def __init__(self, args): self._module_conf = MoudleConfig(args.conf) report_type = 'terminal' if args.output: os.mknod(args.output) DefaultConfig().set('collect', args.output) report_type = 'csv' RetPrint(report_type)
def __init__(self): super(IORPerformance, self).__init__() self._options = None self._report = RetPrint().get_report() self._report.add_header('ior', self.header)
def __init__(self): super(MDTestPerformance, self).__init__() self._options = None self._report = RetPrint().get_report() self._report.add_header('mdtest', self.header)