aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Hunt <kristian.hunt@gmail.com>2015-12-17 12:15:32 +0100
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-12-21 23:21:24 +0000
commit804abc1206a1ca23d1d1eca0b63b54abca850a26 (patch)
tree66d56c3f9d9253fcce48bed1a15e124c0080d189
parentedb23ec25362d2c0c43e124c03fe3d4fe7f1e4f0 (diff)
Fix lmbench memory read latency stop size
Stop size parameter's type should be float to allow for performing measurements on only L1 and L2 cache if needed. JIRA: - Change-Id: Ibc4d052c343e9dcccf6101c6c949172bb5a0f9e1 Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
-rw-r--r--samples/lmbench.yaml2
-rw-r--r--yardstick/benchmark/scenarios/compute/lmbench.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/samples/lmbench.yaml b/samples/lmbench.yaml
index 8baa81477..4ef53c30b 100644
--- a/samples/lmbench.yaml
+++ b/samples/lmbench.yaml
@@ -9,7 +9,7 @@ scenarios:
type: Lmbench
options:
test_type: "latency"
- stop_size: 32
+ stop_size: 32.0
host: demeter.demo
diff --git a/yardstick/benchmark/scenarios/compute/lmbench.py b/yardstick/benchmark/scenarios/compute/lmbench.py
index b9adf5079..e15fe7eb4 100644
--- a/yardstick/benchmark/scenarios/compute/lmbench.py
+++ b/yardstick/benchmark/scenarios/compute/lmbench.py
@@ -31,9 +31,9 @@ class Lmbench(base.Scenario):
unit: bytes
default: 128
stop_size - maximum array size to test (minimum value is 0.000512)
- type: int
+ type: float
unit: megabytes
- default: 16
+ default: 16.0
Results are accurate to the ~2-5 nanosecond range.
@@ -98,8 +98,8 @@ class Lmbench(base.Scenario):
if test_type == 'latency':
stride = options.get('stride', 128)
- stop_size = options.get('stop_size', 16)
- cmd = "sudo bash lmbench_latency.sh %d %d" % (stop_size, stride)
+ stop_size = options.get('stop_size', 16.0)
+ cmd = "sudo bash lmbench_latency.sh %f %d" % (stop_size, stride)
elif test_type == 'bandwidth':
size = options.get('size', 128)
benchmark = options.get('benchmark', 'rd')