[dts] [PATCH 04/11 v1] test_plans: add packed ring cases for pvp_virtio_user_4k_pages

Yinan yinan.wang at intel.com
Fri Feb 28 07:09:40 CET 2020


From: Wang Yinan <yinan.wang at intel.com>

Signed-off-by: Wang Yinan <yinan.wang at intel.com>
---
 .../pvp_virtio_user_4k_pages_test_plan.rst    | 30 +++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/test_plans/pvp_virtio_user_4k_pages_test_plan.rst b/test_plans/pvp_virtio_user_4k_pages_test_plan.rst
index a7ba2a0..ea3dcc8 100644
--- a/test_plans/pvp_virtio_user_4k_pages_test_plan.rst
+++ b/test_plans/pvp_virtio_user_4k_pages_test_plan.rst
@@ -40,8 +40,8 @@ Prerequisites
 -------------
 Turn off transparent hugepage in grub by adding GRUB_CMDLINE_LINUX="transparent_hugepage=never"
 
-Test Case1: Basic test vhost/virtio-user with 4K-pages
-======================================================
+Test Case1: Basic test vhost/virtio-user split ring with 4K-pages
+=================================================================
 
 1. Bind one port to vfio-pci, launch vhost::
 
@@ -62,6 +62,32 @@ Test Case1: Basic test vhost/virtio-user with 4K-pages
     --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=1 -- -i
     testpmd>start
 
+4. Send packet with packet generator with different packet size,includes [64, 128, 256, 512, 1024, 1518], check the throughput with below command::
+
+    testpmd>show port stats all
+
+Test Case2: Basic test vhost/virtio-user packed ring with 4K-pages
+==================================================================
+
+1. Bind one port to vfio-pci, launch vhost::
+
+    modprobe vfio-pci
+    ./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x
+    ./testpmd -l 3-4 -n 4 -m 1024 --no-huge --file-prefix=vhost \
+    --vdev 'net_vhost0,iface=/tmp/vhost-net,queues=1' -- -i --no-numa --socket-num=0
+    testpmd>start
+
+2. Prepare tmpfs with 4K-pages::
+
+    mkdir /mnt/tmpfs_yinan
+    mount tmpfs /mnt/tmpfs_yinan -t tmpfs -o size=4G
+
+3. Launch virtio-user with 4K-pages::
+
+    ./testpmd -l 5-6 -n 4 --no-huge -m 1024 --file-prefix=virtio-user \
+    --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,packed_vq=1,queues=1 -- -i
+    testpmd>start
+
 4. Send packet with packet generator with different packet size,includes [64, 128, 256, 512, 1024, 1518], check the throughput with below command::
 
     testpmd>show port stats all
\ No newline at end of file
-- 
2.17.1



More information about the dts mailing list