aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-07-12 14:47:17 +0000
committerTibor Frank <tifrank@cisco.com>2021-07-14 12:39:23 +0000
commita9e0bcf4d44152d38b2bbd9917e54bacf28a0916 (patch)
tree1b8afb5c245633f9b0ac1e57d984e9d25dbf3dc4 /docs
parent61c1e0ce9f887d768d5af86a1482455b8cd2a8b0 (diff)
Report: Add per thread resources allocation methodology
Per thread resources include: - pcores and lcores. - RxQs. - TxQs. Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I64b418a99673bf05b37a9e97be4aaa80e4ffb835 Signed-off-by: Maciek Konstantynowicz <mkonstan@cisco.com> (cherry picked from commit 8cd8790583b4d56985c486489327c92e6a9464a0)
Diffstat (limited to 'docs')
-rw-r--r--docs/report/introduction/methodology.rst1
-rw-r--r--docs/report/introduction/methodology_per_thread_resources.rst102
2 files changed, 103 insertions, 0 deletions
diff --git a/docs/report/introduction/methodology.rst b/docs/report/introduction/methodology.rst
index a597cea8a2..158f541619 100644
--- a/docs/report/introduction/methodology.rst
+++ b/docs/report/introduction/methodology.rst
@@ -7,6 +7,7 @@ Test Methodology
.. toctree::
methodology_terminology
+ methodology_per_thread_resources
methodology_vpp_forwarding_modes
methodology_data_plane_throughput/index
methodology_trex_traffic_generator
diff --git a/docs/report/introduction/methodology_per_thread_resources.rst b/docs/report/introduction/methodology_per_thread_resources.rst
new file mode 100644
index 0000000000..cde4b7d616
--- /dev/null
+++ b/docs/report/introduction/methodology_per_thread_resources.rst
@@ -0,0 +1,102 @@
+.. _per_thread_resources_methodology:
+
+Per Thread Resources
+--------------------
+
+CSIT test framework is managing mapping of the following resources per
+thread:
+
+#. Cores, physical cores (pcores) allocated as pairs of sibling logical cores
+ (lcores) if server in HyperThreading/SMT mode, or as single lcores
+ if server not in HyperThreading/SMT mode. Note that if server's
+ processors are running in HyperThreading/SMT mode sibling lcores are
+ always used.
+#. Receive Queues (RxQ), packet receive queues allocated on each
+ physical and logical interface tested.
+#. Transmit Queues(TxQ), packet transmit queues allocated on each
+ physical and logical interface tested.
+
+Approach to mapping per thread resources depends on the application/DUT
+tested (VPP or DPDK apps) and associated thread types, as follows:
+
+#. Data-plane workers, used for data-plane packet processing, when no
+ feature workers present.
+
+ - Cores: data-plane workers are typically tested in 1, 2 and 4 pcore
+ configurations, running on single lcore per pcore or on sibling
+ lcores per pcore. Result is a set of {T}t{C}c thread-core
+ configurations, where{T} stands for a total number of threads
+ (lcores), and {C} for a total number of pcores. Tested
+ configurations are encoded in CSIT test case names,
+ e.g. "1c", "2c", "4c", and test tags "2T1C"(or "1T1C"), "4T2C"
+ (or "2T2C"), "8T4C" (or "4T4C").
+ - Interface Receive Queues (RxQ): as of CSIT-2106 release, number of
+ RxQs used on each physical or virtual interface is equal to the
+ number of data-plane workers. In other words each worker has a
+ dedicated RxQ on each interface tested. This ensures packet
+ processing load to be equal for each worker, subject to RSS flow
+ load balancing efficacy. Note: Before CSIT-2106 total number of
+ RxQs across all interfaces of specific type was equal to the
+ number of data-plane workers.
+ - Interface Transmit Queues (TxQ): number of TxQs used on each
+ physical or virtual interface is equal to the number of data-plane
+ workers. In other words each worker has a dedicated TxQ on each
+ interface tested.
+ - Applies to VPP and DPDK Testpmd and L3Fwd.
+
+#. Data-plane and feature workers (e.g. IPsec async crypto workers), the
+ latter dedicated to specific feature processing.
+
+ - Cores: data-plane and feature workers are tested in 2, 3 and 4
+ pcore configurations, running on single lcore per pcore or on
+ sibling lcores per pcore. This results in a two sets of
+ thread-core combinations separated by "-", {T}t{C}c-{T}t{C}c, with
+ the leading set denoting total number of threads (lcores) and
+ pcores used for data-plane workers, and the trailing set denoting
+ total number of lcores and pcores used for feature workers.
+ Accordingly, tested configurations are encoded in CSIT test case
+ names, e.g. "1c-1c", "1c-2c", "1c-3c", and test tags "2T1C_2T1C"
+ (or "1T1C_1T1C"), "2T1C_4T2C"(or "1T1C_2T2C"), "2T1C_6T3C"
+ (or "1T1C_3T3C").
+ - RxQ and TxQ: no RxQs and no TxQs are used by feature workers.
+ - Applies to VPP only.
+
+#. Management/main worker, control plane and management.
+
+ - Cores: single lcore.
+ - RxQ: not used (VPP default behaviour).
+ - TxQ: single TxQ per interface, allocated but not used
+ (VPP default behaviour).
+ - Applies to VPP only.
+
+VPP Thread Configuration
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+Mapping of cores and RxQs to VPP data-plane worker threads is done in
+the VPP startup.conf during test suite setup:
+
+#. `corelist-workers <list_of_cores>`: List of logical cores to run VPP
+ data-plane workers and feature workers. The actual lcores'
+ allocations depends on HyperThreading/SMT server configuration and
+ per test core configuration.
+
+ - For tests without feature workers, by default, all CPU cores
+ configured in startup.conf are used for data-plane workers.
+ - For tests with feature workers, CSIT code distributes lcores across
+ data-plane and feature workers.
+
+#. `num-rx-queues <value>`: Number of Rx queues used per interface.
+
+Mapping of TxQs to VPP data-plane worker threads uses the default VPP
+setting of one TxQ per interface per data-plane worker.
+
+DPDK Thread Configuration
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Mapping of cores and RxQs to DPDK Testpmd/L3Fwd data-plane worker
+threads is done in the startup CLI:
+
+#. `-l <list_of_cores>` - List of logical cores to run DPDK
+ application.
+#. `nb-cores=<N>` - Number of forwarding cores.
+#. `rxq=<N>` - Number of Rx queues used per interface.