mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
wa/workloads: Update to use threads
parameter
Update workloads to use `threads` parameter to try and keep configuration more consistent across workloads.
This commit is contained in:
parent
47ec0c7720
commit
a23c896647
@ -148,8 +148,9 @@ class Meabo(Workload):
|
|||||||
default=range(1, 11),
|
default=range(1, 11),
|
||||||
),
|
),
|
||||||
Parameter(
|
Parameter(
|
||||||
'num_threads',
|
'threads',
|
||||||
kind=int,
|
kind=int,
|
||||||
|
aliases=['num_threads'],
|
||||||
description='''
|
description='''
|
||||||
Controls how many threads the application will be using.
|
Controls how many threads the application will be using.
|
||||||
''',
|
''',
|
||||||
@ -227,7 +228,7 @@ class Meabo(Workload):
|
|||||||
('-x', 'num_palindromes'),
|
('-x', 'num_palindromes'),
|
||||||
('-p', 'num_particles'),
|
('-p', 'num_particles'),
|
||||||
('-R', 'num_randomloc'),
|
('-R', 'num_randomloc'),
|
||||||
('-T', 'num_threads'),
|
('-T', 'threads'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
@ -58,7 +58,7 @@ class Sysbench(Workload):
|
|||||||
Parameter('test', kind=str, default='cpu',
|
Parameter('test', kind=str, default='cpu',
|
||||||
allowed_values=['fileio', 'cpu', 'memory', 'threads', 'mutex'],
|
allowed_values=['fileio', 'cpu', 'memory', 'threads', 'mutex'],
|
||||||
description='sysbench test to run'),
|
description='sysbench test to run'),
|
||||||
Parameter('num_threads', kind=int, default=8,
|
Parameter('threads', kind=int, default=8, aliases=['num_threads'],
|
||||||
description='''
|
description='''
|
||||||
The number of threads sysbench will launch.
|
The number of threads sysbench will launch.
|
||||||
'''),
|
'''),
|
||||||
@ -112,7 +112,7 @@ class Sysbench(Workload):
|
|||||||
def setup(self, context):
|
def setup(self, context):
|
||||||
self.host_results_file = None
|
self.host_results_file = None
|
||||||
params = dict(test=self.test,
|
params = dict(test=self.test,
|
||||||
num_threads=self.num_threads)
|
num_threads=self.threads)
|
||||||
if self.max_requests:
|
if self.max_requests:
|
||||||
params['max_requests'] = self.max_requests
|
params['max_requests'] = self.max_requests
|
||||||
if self.max_time:
|
if self.max_time:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user