1 .. This work is licensed under a Creative Commons Attribution 4.0 International
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Ericsson AB and others.
6 *************************************
7 Yardstick Test Case Description TC012
8 *************************************
10 .. _man-pages: http://manpages.ubuntu.com/manpages/trusty/bw_mem.8.html
12 +-----------------------------------------------------------------------------+
15 +--------------+--------------------------------------------------------------+
16 |test case id | OPNFV_YARDSTICK_TC012_Memory Bandwidth |
18 +--------------+--------------------------------------------------------------+
19 |metric | Megabyte per second (MBps) |
21 +--------------+--------------------------------------------------------------+
22 |test purpose | Measure the rate at which data can be read from and written |
23 | | to the memory (this includes all levels of memory). |
25 +--------------+--------------------------------------------------------------+
26 |configuration | File: opnfv_yardstick_tc012.yaml |
28 | | * SLA (optional): 15000 (MBps) min_bw: The minimum amount of |
29 | | memory bandwidth that is accepted. |
30 | | * Size: 10 240 kB - test allocates twice that size (20 480kB)|
31 | | zeros it and then measures the time it takes to copy from |
32 | | one side to another. |
33 | | * Benchmark: rdwr - measures the time to read data into |
34 | | memory and then write data to the same location. |
35 | | * Warmup: 0 - the number of iterations to perform before |
36 | | taking actual measurements. |
37 | | * Iterations: 10 - test is run 10 times iteratively. |
38 | | * Interval: 1 - there is 1 second delay between each |
41 +--------------+--------------------------------------------------------------+
42 |test tool | Lmbench |
44 | | Lmbench is a suite of operating system microbenchmarks. This |
45 | | test uses bw_mem tool from that suite. |
46 | | Lmbench is not always part of a Linux distribution, hence it |
47 | | needs to be installed in the test image. |
49 +--------------+--------------------------------------------------------------+
50 |references | man-pages_ |
52 | | McVoy, Larry W., and Carl Staelin. "lmbench: Portable Tools |
53 | | for Performance Analysis." USENIX annual technical |
54 | | conference. 1996. |
56 +--------------+--------------------------------------------------------------+
57 |applicability | Test can be configured with different: |
60 | | * memory operations (such as rd, wr, rdwr, cp, frd, fwr, |
61 | | fcp, bzero, bcopy); |
62 | | * number of warmup iterations; |
63 | | * iterations and intervals. |
65 | | There are default values for each above-mentioned option. |
67 +--------------+--------------------------------------------------------------+
68 |pre-test | The test case image needs to be installed into Glance |
69 |conditions | with Lmbench included in the image. |
71 | | No POD specific requirements have been identified. |
73 +--------------+--------------------------------------------------------------+
74 |test sequence | description and expected result |
76 +--------------+--------------------------------------------------------------+
77 |step 1 | The host is installed as client. Lmbench's bw_mem tool is |
78 | | invoked and logs are produced and stored. |
80 | | Result: logs are stored. |
82 +--------------+--------------------------------------------------------------+
83 |test verdict | Test fails if the measured memory bandwidth is below the SLA |
84 | | value or if there is a test case execution problem. |
86 +--------------+--------------------------------------------------------------+