diff options
author | Clark Williams <williams@redhat.com> | 2015-12-10 12:37:05 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2015-12-10 12:43:07 -0600 |
commit | 770d3630bd024a61cdd67ff67108eaf5053fa188 (patch) | |
tree | e7abdc8cb50aaa47396576819ccd331fe084fb4b | |
parent | bcb80bc33e8a9bef727cf2719eedd99b2a7e855b (diff) | |
download | rteval-770d3630bd024a61cdd67ff67108eaf5053fa188.tar.gz |
hackbench: stop using old numactl argument
Stop using --cpubind and move to --cpunodebind.
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | rteval/modules/loads/hackbench.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py index c44b126..0a7c664 100644 --- a/rteval/modules/loads/hackbench.py +++ b/rteval/modules/loads/hackbench.py @@ -1,4 +1,4 @@ -# + # hackbench.py - class to manage an instance of hackbench load # # Copyright 2009 - 2013 Clark Williams <williams@redhat.com> @@ -108,7 +108,7 @@ class Hackbench(CommandLineLoad): def __starton(self, node): if self.__multinodes: if self.__usenumactl: - args = [ 'numactl', '--cpubindnode', node ] + self.args + args = [ 'numactl', '--cpunodebind', node ] + self.args else: cpulist = ",".join([ str(n) for n in self.cpus[node] ]) args = ['taskset', '-c', cpulist ] + self.args @@ -116,10 +116,14 @@ class Hackbench(CommandLineLoad): args = self.args self._log(Log.DEBUG, "starting on node %s: args = %s" % (node, args)) - return subprocess.Popen(args, - stdin=self.__nullfp, - stdout=self.__out, - stderr=self.__err) + p = subprocess.Popen(args, + stdin=self.__nullfp, + stdout=self.__out, + stderr=self.__err) + if not p: + self._log(Log.DEBUG, "hackbench failed to start on node %s" % node) + raise RuntimeError, "hackbench failed to start on node %s" % node + return p def _WorkloadTask(self): if self.shouldStop(): |