diff options
author | David Sommerseth <davids@redhat.com> | 2010-07-26 19:06:21 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2010-07-26 19:06:21 +0200 |
commit | bca68f1e0b1245ed9cd3c56324ae12e55998521f (patch) | |
tree | e82f1f927a6a02900765b7c7cf6478345d09a170 /rteval | |
parent | e286201470bed56bc4fc81814280c0b2444d615f (diff) | |
download | rteval-bca68f1e0b1245ed9cd3c56324ae12e55998521f.tar.gz rteval-bca68f1e0b1245ed9cd3c56324ae12e55998521f.tar.xz rteval-bca68f1e0b1245ed9cd3c56324ae12e55998521f.zip |
Updated hackbench implementation to avoid overusing resources
- Removed support for setting 'thread' workunit
This implementation needs to be re-implemented better, as it
will easily use more than 1024 file descriptors.
- Changed dynmic hackbench loops to a static value
To make the load more comparable no matter how many CPU cores
available. Using 100 as the default value.
- Reduced data size from 128 to 100
This is to match the old hackbench value.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'rteval')
-rw-r--r-- | rteval/hackbench.py | 13 | ||||
-rw-r--r-- | rteval/rteval.conf | 1 |
2 files changed, 4 insertions, 10 deletions
diff --git a/rteval/hackbench.py b/rteval/hackbench.py index 7ef548b..eddeeb9 100644 --- a/rteval/hackbench.py +++ b/rteval/hackbench.py @@ -62,16 +62,11 @@ class Hackbench(load.Load): self.debug("low memory system (%f GB/core)! Dropping jobs to one-per-core\n" % ratio) mult = 1 self.jobs = self.num_cpus * mult - self.datasize = self.params.setdefault('datasize', '128') - self.workunit = self.params.setdefault('workunit', 'thread') - if self.workunit.startswith('thread'): - workarg = '-T' - else: - workarg = '-P' - self.args = ['hackbench', workarg, + + self.args = ['hackbench', '-P', '-g', str(self.jobs), - '-l', str(self.num_cpus * 256), - '-s', self.datasize, + '-l', str(self.params.setdefault('loops', '100')), + '-s', str(self.params.setdefault('datasize', '100')) ] self.err_sleep = 5.0 diff --git a/rteval/rteval.conf b/rteval/rteval.conf index e25c6e0..ddada8f 100644 --- a/rteval/rteval.conf +++ b/rteval/rteval.conf @@ -20,7 +20,6 @@ jobspercore: 2 [hackbench] jobspercore: 2 -workunit: thread [dbench] source: dbench.tar.gz |