Adding scale up feature to prox MPLS Tagging OvS-DPDK & SRIOV
[yardstick.git] / docs / testing / user / userguide / opnfv_yardstick_tc024.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International
2 .. License.
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Ericsson AB and others.
5
6 *************************************
7 Yardstick Test Case Description TC024
8 *************************************
9
10 .. _man-pages: http://manpages.ubuntu.com/manpages/trusty/man1/mpstat.1.html
11
12 +-----------------------------------------------------------------------------+
13 | CPU Load                                                                    |
14 |                                                                             |
15 +--------------+--------------------------------------------------------------+
16 |test case id  | OPNFV_YARDSTICK_TC024_CPU Load                               |
17 |              |                                                              |
18 +--------------+--------------------------------------------------------------+
19 |metric        | CPU load                                                     |
20 |              |                                                              |
21 +--------------+--------------------------------------------------------------+
22 |test purpose  | To evaluate the CPU load performance of the IaaS. This test  |
23 |              | case should be run in parallel to other Yardstick test cases |
24 |              | and not run as a stand-alone test case.                      |
25 |              | Average, minimum and maximun values are obtained.            |
26 |              | The purpose is also to be able to spot trends.               |
27 |              | Test results, graphs and similar shall be stored for         |
28 |              | comparison reasons and product evolution understanding       |
29 |              | between different OPNFV versions and/or configurations.      |
30 |              |                                                              |
31 +--------------+--------------------------------------------------------------+
32 |configuration | file: cpuload.yaml (in the 'samples' directory)              |
33 |              |                                                              |
34 |              | * interval: 1 - repeat, pausing every 1 seconds in-between.  |
35 |              | * count: 10 - display statistics 10 times, then exit.        |
36 |              |                                                              |
37 +--------------+--------------------------------------------------------------+
38 |test tool     | mpstat                                                       |
39 |              |                                                              |
40 |              | (mpstat is not always part of a Linux distribution, hence it |
41 |              | needs to be installed. It is part of the Yardstick Glance    |
42 |              | image. However, if mpstat is not present the TC instead uses |
43 |              | /proc/stats as source to produce "mpstat" output.            |
44 |              |                                                              |
45 +--------------+--------------------------------------------------------------+
46 |references    | man-pages_                                                   |
47 |              |                                                              |
48 +--------------+--------------------------------------------------------------+
49 |applicability | Test can be configured with different:                       |
50 |              |                                                              |
51 |              |  * interval;                                                 |
52 |              |  * count;                                                    |
53 |              |  * runner Iteration and intervals.                           |
54 |              |                                                              |
55 |              | There are default values for each above-mentioned option.    |
56 |              | Run in background with other test cases.                     |
57 |              |                                                              |
58 +--------------+--------------------------------------------------------------+
59 |pre-test      | The test case image needs to be installed into Glance        |
60 |conditions    | with mpstat included in it.                                  |
61 |              |                                                              |
62 |              | No POD specific requirements have been identified.           |
63 |              |                                                              |
64 +--------------+--------------------------------------------------------------+
65 |test sequence | description and expected result                              |
66 |              |                                                              |
67 +--------------+--------------------------------------------------------------+
68 |step 1        | The host is installed. The related TC, or TCs, is            |
69 |              | invoked and mpstat logs are produced and stored.             |
70 |              |                                                              |
71 |              | Result: Stored logs                                          |
72 |              |                                                              |
73 +--------------+--------------------------------------------------------------+
74 |test verdict  | None. CPU load results are fetched and stored.               |
75 |              |                                                              |
76 +--------------+--------------------------------------------------------------+