aboutsummaryrefslogtreecommitdiff
path: root/crosperf/crosperf.py
diff options
context:
space:
mode:
authorHan Shen <shenhan@google.com>2015-08-05 17:19:55 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-20 20:29:33 +0000
commitba64928c5dcbacbc70b4358881a89ad96227164d (patch)
tree4d2887d79204febd1c5b016810b2a65bb7551c91 /crosperf/crosperf.py
parent0aa17b4641bcc205c52e6db0c529dd3126003ec5 (diff)
downloadtoolchain-utils-ba64928c5dcbacbc70b4358881a89ad96227164d.tar.gz
Crosperf schedv2 (1) - new option and integrating new scheduler.
This Cl introduces a new option '--schedv2' which uses the new scheduler to allocate jobs (benchmark_runs) to duts. With this option, schedv2 takes control of storing/allocating jobs and reimage machines using the new algorithm. This CL leaves actual reimaging and running jobs non-op (a random time sleep is used for each such op, which would be replace in later CLs.) You may try this CL like this and see how schedv2 works - crosperf --locks_dir=/usr/local/google/home/shenhan/tmp --use_file_locks=True --logging_level=verbose --schedv2 some.exp Change-Id: If5bb7751b466c39e54c93fe8f0b4e363be6d9165 Reviewed-on: https://chrome-internal-review.googlesource.com/225515 Commit-Queue: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com> Reviewed-by: Han Shen <shenhan@google.com>
Diffstat (limited to 'crosperf/crosperf.py')
-rwxr-xr-xcrosperf/crosperf.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/crosperf/crosperf.py b/crosperf/crosperf.py
index 88e510fd..b0f0b0c9 100755
--- a/crosperf/crosperf.py
+++ b/crosperf/crosperf.py
@@ -64,6 +64,10 @@ def Main(argv):
formatter=MyIndentedHelpFormatter(),
version="%prog 3.0")
+ parser.add_option("--schedv2",
+ dest="schedv2",
+ action="store_true",
+ help="Use crosperf scheduler v2 (feature in progress).")
parser.add_option("-l", "--log_dir",
dest="log_dir",
default="",
@@ -101,7 +105,8 @@ def Main(argv):
if options.dry_run:
runner = MockExperimentRunner(experiment)
else:
- runner = ExperimentRunner(experiment)
+ runner = ExperimentRunner(experiment, using_schedv2=options.schedv2)
+
runner.Run()
if __name__ == "__main__":