| Documentation | Performance suite keywords
*** Keywords ***
-| Setup performance rate Variables
-| | [Documentation]
-| | ... | Setup performance linerates as Suite Variables. Variables are used
-| | ... | as search boundaries in RFC2544 throughput search.
-| | ...
-| | ... | _NOTE:_ This KW sets following suite variables:
-| | ... | - 10Ge_linerate_pps_64B - Maximum number of packet per second
-| | ... | for 10GE with 64B L2 Frame.
-| | ... | - 10Ge_linerate_pps_68B - Maximum number of packet per second
-| | ... | for 10GE with 68B L2 Frame.
-| | ... | - 10Ge_linerate_pps_72B - Maximum number of packet per second
-| | ... | for 10GE with 72B L2 Frame.
-| | ... | - 10Ge_linerate_pps_78B - Maximum number of packet per second
-| | ... | for 10GE with 78B L2 Frame.
-| | ... | - 10Ge_linerate_pps_114B - Maximum number of packet per second
-| | ... | for 10GE with 114B L2 Frame.
-| | ... | - 10Ge_linerate_pps_1518B - Maximum number of packet per second
-| | ... | for 10GE with 1518B L2 Frame.
-| | ... | - 10Ge_linerate_pps_1522B - Maximum number of packet per second
-| | ... | for 10GE with 1522B L2 Frame.
-| | ... | - 10Ge_linerate_pps_1526B - Maximum number of packet per second
-| | ... | for 10GE with 1526B L2 Frame.
-| | ... | - 10Ge_linerate_pps_1568B - Maximum number of packet per second
-| | ... | for 10GE with 1568B L2 Frame.
-| | ... | - 10Ge_linerate_pps_9000B - Maximum number of packet per second
-| | ... | for 10GE with 9000B L2 Frame.
-| | ... | - 10Ge_linerate_pps_9004B - Maximum number of packet per second
-| | ... | for 10GE with 9004B L2 Frame.
-| | ... | - 10Ge_linerate_pps_9008B - Maximum number of packet per second
-| | ... | for 10GE with 9008B L2 Frame.
-| | ... | - 10Ge_linerate_pps_9050B - Maximum number of packet per second
-| | ... | for 10GE with 9050B L2 Frame.
-| | ... | - 10Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
-| | ... | for 10GE with IMIX_v4_1 profile.
-| | ... | - 10Ge_lisp_linerate_pps_72B - Maximum number of packets per second
-| | ... | for 10GE with 72B L2 Frame, Lisp and
-| | ... | IPv4 header.
-| | ... | - 10Ge_lisp_linerate_pps_86B - Maximum number of packets per second
-| | ... | for 10GE with 86B L2 Frame, Lisp and
-| | ... | IPv4 header.
-| | ... | - 10Ge_lisp_linerate_pps_1488B - Maximum number of packets per
-| | ... | second for 10GE with 1488B L2
-| | ... | Frame, Lisp and IPv6 header.
-| | ... | - 10Ge_lisp_linerate_pps_9008B - Maximum number of packets per
-| | ... | second for 10GE with 9008B L2
-| | ... | Frame, Lisp, IPv4 or IPv6 header.
-| | ... | - 10Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
-| | ... | second for 10GE with 112B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 10Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
-| | ... | second for 10GE with 126B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 10Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
-| | ... | second for 10GE with 1508B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 10Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
-| | ... | second for 10GE with 9048B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 40Ge_linerate_pps_64B - Maximum number of packet per second
-| | ... | for 40GE with 64B L2 Frame.
-| | ... | - 40Ge_linerate_pps_68B - Maximum number of packet per second
-| | ... | for 40GE with 68B L2 Frame.
-| | ... | - 40Ge_linerate_pps_72B - Maximum number of packet per second
-| | ... | for 40GE with 72B L2 Frame.
-| | ... | - 40Ge_linerate_pps_78B - Maximum number of packet per second
-| | ... | for 40GE with 78B L2 Frame.
-| | ... | - 40Ge_linerate_pps_114B - Maximum number of packet per second
-| | ... | for 40GE with 114B L2 Frame.
-| | ... | - 40Ge_linerate_pps_1518B - Maximum number of packet per second
-| | ... | for 40GE with 1518B L2 Frame.
-| | ... | - 40Ge_linerate_pps_1522B - Maximum number of packet per second
-| | ... | for 40GE with 1522B L2 Frame.
-| | ... | - 40Ge_linerate_pps_1526B - Maximum number of packet per second
-| | ... | for 40GE with 1526B L2 Frame.
-| | ... | - 40Ge_linerate_pps_1568B - Maximum number of packet per second
-| | ... | for 40GE with 1568B L2 Frame.
-| | ... | - 40Ge_linerate_pps_9000B - Maximum number of packet per second
-| | ... | for 40GE with 9000B L2 Frame.
-| | ... | - 40Ge_linerate_pps_9004B - Maximum number of packet per second
-| | ... | for 40GE with 9004B L2 Frame.
-| | ... | - 40Ge_linerate_pps_9008B - Maximum number of packet per second
-| | ... | for 40GE with 9008B L2 Frame.
-| | ... | - 40Ge_linerate_pps_9050B - Maximum number of packet per second
-| | ... | for 40GE with 9050B L2 Frame.
-| | ... | - 40Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second
-| | ... | for 40GE with IMIX_v4_1 profile.
-| | ... | - 40Ge_lisp_linerate_pps_72B - Maximum number of packets per second
-| | ... | for 40GE with 72B L2 Frame, Lisp and
-| | ... | IPv4 header.
-| | ... | - 40Ge_lisp_linerate_pps_86B - Maximum number of packets per second
-| | ... | for 40GE with 86B L2 Frame, Lisp and
-| | ... | IPv4 header.
-| | ... | - 40Ge_lisp_linerate_pps_1488B - Maximum number of packets per
-| | ... | second for 40GE with 1488B L2
-| | ... | Frame, Lisp and IPv6 header.
-| | ... | - 40Ge_lisp_linerate_pps_9008B - Maximum number of packets per
-| | ... | second for 40GE with 9008B L2
-| | ... | Frame, Lisp, IPv4 or IPv6 header.
-| | ... | - 40Ge_lisp_iph_linerate_pps_112B - Maximum number of packets per
-| | ... | second for 40GE with 112B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 40Ge_lisp_iph_linerate_pps_126B - Maximum number of packets per
-| | ... | second for 40GE with 126B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 40Ge_lisp_iph_linerate_pps_1508B - Maximum number of packets per
-| | ... | second for 40GE with 1508B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ... | - 40Ge_lisp_iph_linerate_pps_9048B - Maximum number of packets per
-| | ... | second for 40GE with 9048B L2
-| | ... | Frame, Lisp, IPv4 and IPv6
-| | ... | header.
-| | ...
-| | Set Suite Variable | ${10Ge_linerate_pps_64B} | 14880952
-| | Set Suite Variable | ${10Ge_linerate_pps_68B} | 14204545
-| | Set Suite Variable | ${10Ge_linerate_pps_72B} | 13586956
-| | Set Suite Variable | ${10Ge_linerate_pps_78B} | 12755102
-| | Set Suite Variable | ${10Ge_linerate_pps_114B} | 9328358
-| | Set Suite Variable | ${10Ge_linerate_pps_1518B} | 812743
-| | Set Suite Variable | ${10Ge_linerate_pps_1522B} | 810635
-| | Set Suite Variable | ${10Ge_linerate_pps_1568B} | 787153
-| | Set Suite Variable | ${10Ge_linerate_pps_9000B} | 138580
-| | Set Suite Variable | ${10Ge_linerate_pps_9004B} | 138519
-| | Set Suite Variable | ${10Ge_linerate_pps_9008B} | 138458
-| | Set Suite Variable | ${10Ge_linerate_pps_9050B} | 137816
-| | Set Suite Variable | ${10Ge_linerate_pps_IMIX_v4_1} | 3343736
-| | Set Suite Variable | ${10Ge_lisp_linerate_pps_72B} | 13586956
-| | Set Suite Variable | ${10Ge_lisp_linerate_pps_86B} | 11792452
-| | Set Suite Variable | ${10Ge_lisp_linerate_pps_1488B} | 828912
-| | Set Suite Variable | ${10Ge_lisp_linerate_pps_9008B} | 138458
-| | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_112B} | 9469696
-| | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_126B} | 8561643
-| | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_1508B} | 818062
-| | Set Suite Variable | ${10Ge_lisp_iph_linerate_pps_9048B} | 137847
-| | Set Suite Variable | ${40Ge_linerate_pps_64B} | 59523809
-| | Set Suite Variable | ${40Ge_linerate_pps_68B} | 56818181
-| | Set Suite Variable | ${40Ge_linerate_pps_72B} | 54347826
-| | Set Suite Variable | ${40Ge_linerate_pps_78B} | 51020408
-| | Set Suite Variable | ${40Ge_linerate_pps_114B} | 37313432
-| | Set Suite Variable | ${40Ge_linerate_pps_1518B} | 3250975
-| | Set Suite Variable | ${40Ge_linerate_pps_1522B} | 3242542
-| | Set Suite Variable | ${40Ge_linerate_pps_1568B} | 3148614
-| | Set Suite Variable | ${40Ge_linerate_pps_9000B} | 554323
-| | Set Suite Variable | ${40Ge_linerate_pps_9004B} | 554078
-| | Set Suite Variable | ${40Ge_linerate_pps_9008B} | 553832
-| | Set Suite Variable | ${40Ge_linerate_pps_9050B} | 551267
-| | Set Suite Variable | ${40Ge_linerate_pps_IMIX_v4_1} | 13374944
-| | Set Suite Variable | ${40Ge_lisp_linerate_pps_72B} | 54347826
-| | Set Suite Variable | ${40Ge_lisp_linerate_pps_86B} | 47169811
-| | Set Suite Variable | ${40Ge_lisp_linerate_pps_1488B} | 3315649
-| | Set Suite Variable | ${40Ge_lisp_linerate_pps_9008B} | 553832
-| | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_112B} | 37878787
-| | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_126B} | 34246575
-| | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_1508B} | 3272251
-| | Set Suite Variable | ${40Ge_lisp_iph_linerate_pps_9048B} | 551389
-
| Calculate pps
| | [Documentation]
| | ... | Calculate pps for given rate and L2 frame size,
| | ...
| | Set Suite Variable | ${glob_loss_acceptance} | 0.5
| | Set Suite Variable | ${glob_loss_acceptance_type} | percentage
-| | Set Suite Variable | ${glob_vm_image} | /var/lib/vm/csit-nested-1.3.img
+| | Set Suite Variable | ${glob_vm_image} | /var/lib/vm/csit-nested-1.5.img
| 2-node circular Topology Variables Setup
| | [Documentation]
| | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
| | ... | interface=${dut1_if1} | count=${count}
| | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
-| | ... | interface=${dut2_if2} | count=${count}
-| | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
| | ... | interface=${dut2_if1} | count=${count}
+| | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
+| | ... | interface=${dut2_if2} | count=${count}
| IPv6 iAcl whitelist initialized in a 3-node circular topology
| | [Documentation]
| | ...
| | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
| | [Arguments] | ${topology_type} | ${nic_model}
-| | Setup default startup configuration of VPP on all DUTs
| | Show vpp version on all DUTs
-| | Setup performance rate Variables
| | Setup performance global Variables
| | 2-node circular Topology Variables Setup with DUT interface model
| | ... | ${nic_model}
+| | Setup default startup configuration of VPP on all DUTs
| | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
| | ... | ${dut1} | ${dut1_if1}
| | ... | ${dut1} | ${dut1_if2}
| | ...
| | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \|
| | [Arguments] | ${topology_type} | ${nic_model}
-| | Setup default startup configuration of VPP on all DUTs
| | Show vpp version on all DUTs
-| | Setup performance rate Variables
| | Setup performance global Variables
| | 3-node circular Topology Variables Setup with DUT interface model
| | ... | ${nic_model}
+| | Setup default startup configuration of VPP on all DUTs
| | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
| | ... | ${dut1} | ${dut1_if1}
| | ... | ${dut2} | ${dut2_if2}
| Guest VM with dpdk-testpmd connected via vhost-user is setup
| | [Documentation]
| | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
-| | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
-| | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
+| | ... | DPDK testpmd. Qemu Guest is using 5 cores pinned to physical cores
+| | ... | 5-9, and 2048M. Testpmd is using 5 cores (1 main core and 4 cores
| | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64,
| | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so
| | ... | and fwd mode is io.
| | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
| | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
| | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
-| | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
+| | Run keyword | ${vm_name}.Qemu Set Smp | 5 | 5 | 1 | 1
| | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
-| | Run keyword | ${vm_name}.Qemu Set Huge Allocate
| | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
| | ${vm}= | Run keyword | ${vm_name}.Qemu Start
-| | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
-| | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
+| | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7 | 8 | 9
+| | Run keyword | ${vm_name}.Qemu Set Scheduler Policy
+| | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f
| | ... | eal_mem_channels=4
| | ... | pmd_fwd_mode=io
| | ... | pmd_disable_hw_vlan=${True}
-| | ... | pmd_disable_rss=${True}
| | Return From Keyword | ${vm}
| Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
| | [Documentation]
| | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
-| | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5,
-| | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores
+| | ... | DPDK testpmd. Qemu Guest is using 5 cores pinned to physical cores
+| | ... | 5-9 and 2048M. Testpmd is using 5 cores (1 main core and 4 cores
| | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64,
| | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so
| | ... | and fwd mode is mac rewrite.
| | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
| | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
| | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
-| | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
+| | Run keyword | ${vm_name}.Qemu Set Smp | 5 | 5 | 1 | 1
| | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
-| | Run keyword | ${vm_name}.Qemu Set Huge Allocate
-| | Run keyword | ${vm_name}.Qemu Set Disk Image
-| | ... | /var/lib/vm/csit-nested-1.3.img
+| | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
| | ${vm}= | Run keyword | ${vm_name}.Qemu Start
-| | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
-| | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7
+| | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7 | 8 | 9
+| | Run keyword | ${vm_name}.Qemu Set Scheduler Policy
+| | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f
| | ... | eal_mem_channels=4
| | ... | pmd_fwd_mode=mac
| | ... | pmd_eth_peer_0=0,${eth0_mac}
| | ... | pmd_eth_peer_1=1,${eth1_mac}
| | ... | pmd_disable_hw_vlan=${True}
-| | ... | pmd_disable_rss=${True}
| | Return From Keyword | ${vm}
| Guest VM with Linux Bridge connected via vhost-user is setup
| | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
| | Run keyword | ${vm_name}.Qemu Set Smp | 3 | 3 | 1 | 1
| | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
-| | Run keyword | ${vm_name}.Qemu Set Huge Allocate
| | Run keyword | ${vm_name}.Qemu Set Disk Image | ${glob_vm_image}
| | ${vm}= | Run keyword | ${vm_name}.Qemu Start
| | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7
+| | Run keyword | ${vm_name}.Qemu Set Scheduler Policy
| | ${br}= | Set Variable | br0
| | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
| | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
| | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular topology \
| | ... | \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
| | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
-| | ... | \| ${prefix4} \| ${prefix6} \|
+| | ... | \| ${prefix6} \| ${prefix4} \|
| | ...
| | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
| | ... | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
-| | ... | ${prefix4} | ${prefix6}
+| | ... | ${prefix6} | ${prefix4}
| | Set Interface State | ${dut1} | ${dut1_if1} | up
| | Set Interface State | ${dut1} | ${dut1_if2} | up
| | Set Interface State | ${dut2} | ${dut2_if1} | up