aboutsummaryrefslogtreecommitdiffstats
path: root/gen/generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'gen/generator.py')
-rw-r--r--gen/generator.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gen/generator.py b/gen/generator.py
index 0999e84..909c730 100644
--- a/gen/generator.py
+++ b/gen/generator.py
@@ -75,13 +75,14 @@ class Generator(object):
75 release_master = list(set([False, bool(rm_config)])) 75 release_master = list(set([False, bool(rm_config)]))
76 76
77 77
78 return [GenOption('tasks', int, range(cpus, 5*cpus, cpus), 78 return [GenOption('tasks', int, range(cpus, 10*cpus, cpus),
79 'Number of tasks per experiment.'), 79 'Number of tasks per experiment.'),
80 GenOption('cpus', int, [cpus], 80 GenOption('cpus', int, [cpus],
81 'Number of processors on target system.'), 81 'Number of processors on target system.'),
82 GenOption('release_master', [True,False], release_master, 82 GenOption('release_master', [True,False], release_master,
83 'Redirect release interrupts to a single CPU.'), 83 'Redirect release interrupts to a single CPU.'),
84 GenOption('duration', float, [30], 'Experiment duration.')] 84 #GenOption('post', str, ['refill.sh'], 'Post script.'),
85 GenOption('duration', float, [10], 'Experiment duration.')]
85 86
86 @staticmethod 87 @staticmethod
87 def _dist_option(name, default, distribution, help): 88 def _dist_option(name, default, distribution, help):
@@ -113,9 +114,9 @@ class Generator(object):
113 print(("Only created task set of size %d < %d for params %s. " + 114 print(("Only created task set of size %d < %d for params %s. " +
114 "Switching to light utilization.") % 115 "Switching to light utilization.") %
115 (len(ts), params['tasks'], params)) 116 (len(ts), params['tasks'], params))
116 print("Switching to light util. This usually means the " + 117 print("Switching to very-light util. This usually means the " +
117 "utilization distribution is too agressive.") 118 "utilization distribution is too agressive.")
118 return self._create_taskset(params, periods, NAMED_UTILIZATIONS['uni-light'], 119 return self._create_taskset(params, periods, NAMED_UTILIZATIONS['uni-very-light'],
119 max_util) 120 max_util)
120 return ts 121 return ts
121 122