summaryrefslogtreecommitdiffstats
path: root/samples/perf.yaml
diff options
context:
space:
mode:
authorKristian Hunt <kristian.hunt@gmail.com>2015-07-14 13:13:47 +0200
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>2015-08-13 13:23:55 +0000
commiteca1e81cac34d7569fa5dcb15e5df10a6583559b (patch)
treeb33491e7192b1f8a6d8293927fba6dae34d0b7d4 /samples/perf.yaml
parentce671dba3dafe0d7d80d4a7eea1f9395bc4d6d7d (diff)
Add perf scenario and sample
Supports using perf software event counters. No hardware events are currently supported. It is possible to add some load to the system using the load parameter, otherwise the system will sleep while the measurements are collected. It is possible to configure SLA for any event measured. Change-Id: Ic413d940093aadd10dc32888ea416aa94316a6fe JIRA: YARDSTICK-51 Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Diffstat (limited to 'samples/perf.yaml')
-rw-r--r--samples/perf.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/samples/perf.yaml b/samples/perf.yaml
new file mode 100644
index 000000000..e7ba2d0e7
--- /dev/null
+++ b/samples/perf.yaml
@@ -0,0 +1,43 @@
+---
+# Sample benchmark task config file
+# use perf to perform Linux performance measurements
+# this sample demonstrates measurements of various software perf events
+
+schema: "yardstick:task:0.1"
+
+scenarios:
+-
+ type: Perf
+ options:
+ load: true
+ events:
+ - task-clock
+ - cpu-clock
+ - context-switches
+ - page-faults
+ - cpu-migrations
+ host: hades.demo
+
+ runner:
+ type: Duration
+ duration: 30
+
+ sla:
+ metric: context-switches
+ smaller_than_expected: true
+ expected_value: 300
+ action: monitor
+
+context:
+ name: demo
+ image: yardstick-trusty-server
+ flavor: yardstick-flavor
+ user: ec2-user
+
+ servers:
+ hades:
+ floating_ip: true
+ networks:
+ test:
+ cidr: "10.0.1.0/24"
+ external_network: "net04_ext"