.. This work is licensed under a Creative Commons Attribution 4.0 International .. License. .. http://creativecommons.org/licenses/by/4.0 .. (c) OPNFV, Ericsson AB and others. ************************************* Yardstick Test Case Description TC010 ************************************* .. _lat_mem_rd: http://manpages.ubuntu.com/manpages/trusty/lat_mem_rd.8.html +-----------------------------------------------------------------------------+ |Memory Latency | | | +--------------+--------------------------------------------------------------+ |test case id | OPNFV_YARDSTICK_TC010_MEMORY LATENCY | | | | +--------------+--------------------------------------------------------------+ |metric | Memory read latency (nanoseconds) | | | | +--------------+--------------------------------------------------------------+ |test purpose | The purpose of TC010 is to evaluate the IaaS compute | | | performance with regards to memory read latency. | | | It measures the memory read latency for varying memory sizes | | | and strides. Whole memory hierarchy is measured. | | | | | | The purpose is also to be able to spot the trends. | | | Test results, graphs and similar shall be stored for | | | comparison reasons and product evolution understanding | | | between different OPNFV versions and/or configurations. | | | | +--------------+--------------------------------------------------------------+ |test tool | Lmbench | | | | | | Lmbench is a suite of operating system microbenchmarks. This | | | test uses lat_mem_rd tool from that suite including: | | | * Context switching | | | * Networking: connection establishment, pipe, TCP, UDP, and | | | RPC hot potato | | | * File system creates and deletes | | | * Process creation | | | * Signal handling | | | * System call overhead | | | * Memory read latency | | | | | | (LMbench is not always part of a Linux distribution, hence | | | it needs to be installed. As an example see the | | | /yardstick/tools/ directory for how to generate a Linux | | | image with LMbench included.) | | | | +--------------+--------------------------------------------------------------+ |test | LMbench lat_mem_rd benchmark measures memory read latency | |description | for varying memory sizes and strides. | | | | | | The benchmark runs as two nested loops. The outer loop is | | | the stride size. The inner loop is the array size. For each | | | array size, the benchmark creates a ring of pointers that | | | point backward one stride.Traversing the array is done by: | | | | | | p = (char **)*p; | | | | | | in a for loop (the over head of the for loop is not | | | significant; the loop is an unrolled loop 100 loads long). | | | The size of the array varies from 512 bytes to (typically) | | | eight megabytes. For the small sizes, the cache will have an | | | effect, and the loads will be much faster. This becomes much | | | more apparent when the data is plotted. | | | | | | Only data accesses are measured; the instruction cache is | | | not measured. | | | | | | The results are reported in nanoseconds per load and have | | | been verified accurate to within a few nanoseconds on an SGI | | | Indy. | | | | +--------------+--------------------------------------------------------------+ |configuration | File: opnfv_yardstick_tc010.yaml | | | | | | * SLA (max_latency): 30 nanoseconds | | | * Stride - 128 bytes | | | * Stop size - 64 megabytes | | | * Iterations: 10 - test is run 10 times iteratively. | | | * Interval: 1 - there is 1 second delay between each | | | iteration.
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
# os-odl_l2-sfc-ha daily task suite