import ReceiveThread import Results parser = argparse.ArgumentParser() parser.add_argument('-v', '--verbose', action="store_true", help="The script will periodically print stats about TXGs and " " receive speed") parser.add_argument('-t', '--threads', type=int, default=4, choices=xrange(1,32), help="The number of concurrent receives to perform") args = parser.parse_args() # Use TestConfig to ensure this computer is set up properly TestConfig.check_all() # This test case will use the test send file, check that it will work TestConfig.check_testfile() Pid.create_pid_file() # Establish where this test will be writing its output current_min = time.strftime("%Y%m%d%H%M%S") zfs_receive_path = Configs.test_filesystem_path + '/runs/' + current_min start_txg = ZfsApi.get_current_txg(Configs.main_pool) results_collector = Results.ResultsCollector(zfs_receive_path) results_collector.gather_start_results() if args.verbose: monitor_thread = MonitorThread.MonitorThread(zfs_receive_path) monitor_thread.start()
parser = argparse.ArgumentParser() parser.add_argument( "-v", "--verbose", action="store_true", help="The script will periodically print stats about TXGs and " " receive speed", ) parser.add_argument( "-t", "--threads", type=int, default=4, choices=xrange(1, 32), help="The number of concurrent receives to perform" ) args = parser.parse_args() # Use TestConfig to ensure this computer is set up properly TestConfig.check_all() # This test case will use the test send file, check that it will work TestConfig.check_testfile() Pid.create_pid_file() # Establish where this test will be writing its output current_min = time.strftime("%Y%m%d%H%M%S") zfs_receive_path = Configs.test_filesystem_path + "/runs/" + current_min start_txg = ZfsApi.get_current_txg(Configs.main_pool) results_collector = Results.ResultsCollector(zfs_receive_path) results_collector.gather_start_results() if args.verbose: monitor_thread = MonitorThread.MonitorThread(zfs_receive_path) monitor_thread.start()