101. vhost/virtio-user loopback with multi-queues test plan¶
This test plan test vhost/virtio-user loopback multi-queues with split virtqueue and packed virtqueue different rx/tx paths, includes split virtqueue in-order mergeable, in-order non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed virtqueue in-order mergeable, in-order non-mergeable, mergeable, non-mergeable path. And virtio-user support 8 queues in maximum, check performance could be linear growth when enable 8 queues and 8 cores, notice cores should in same socket.
101.1. Test Case 1: loopback with virtio 1.1 mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=0 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.2. Test Case 2: loopback with virtio 1.1 non-mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=0 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=0,in_order=0 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.3. Test Case 3: loopback with virtio 1.0 inorder mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=1,in_order=1 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=1,in_order=1 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.4. Test Case 4: loopback with virtio 1.0 inorder non-mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=1 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=1 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.5. Test Case 5: loopback with virtio 1.0 mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=1,in_order=0 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=1,in_order=0 \ -- -i --enable-hw-vlan-strip --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.6. Test Case 6: loopback with virtio 1.0 non-mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=0 \ -- -i --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=0 \ -- -i --enable-hw-vlan-strip --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.7. Test Case 7: loopback with virtio 1.0 vector_rx path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,mrg_rxbuf=0,in_order=0 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,mrg_rxbuf=0,in_order=0 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.8. Test Case 8: loopback with virtio 1.1 inorder mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=1,in_order=0 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all
101.9. Test Case 9: loopback with virtio 1.1 inorder non-mergeable path using 1 queue and 8 queues¶
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput:
testpmd>show port stats all
Check each RX/TX queue has packets, then quit testpmd:
testpmd>stop testpmd>quit
Launch testpmd by below command:
rm -rf vhost-net* ./testpmd -l 1-9 -n 4 --socket-mem 1024,1024 --no-pci \ --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac
Launch virtio-user by below command:
./testpmd -n 4 -l 10-18 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=0,in_order=0 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start
Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:
testpmd>set txpkts [frame_size] testpmd>start tx_first 32
Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:
testpmd>show port stats all