From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 47B0DB33E for ; Mon, 19 Dec 2016 08:54:56 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP; 18 Dec 2016 23:54:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,372,1477983600"; d="scan'208";a="44054907" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 18 Dec 2016 23:54:55 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 23:54:55 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 23:54:55 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.54]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.9]) with mapi id 14.03.0248.002; Mon, 19 Dec 2016 15:54:53 +0800 From: "Yao, Lei A" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] test_plans: add test plan for vhost pvp performance test case based on qemu Thread-Index: AQHSWbzsgH6zQcy2VkWaTfhZzaHXBKEO5jkg Date: Mon, 19 Dec 2016 07:54:52 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A136098@shsmsx102.ccr.corp.intel.com> References: <1482125626-6207-1-git-send-email-lei.a.yao@intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E62D1A98C@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <86228AFD5BCD8E4EBFD2B90117B5E81E62D1A98C@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] test_plans: add test plan for vhost pvp performance test case based on qemu X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 07:54:58 -0000 > > +4. On VM1, ensure the same dpdk folder is copied and run testpmd, virt= io > > device is binded to igb_uio, use txqflags=3D0xf01 : >=20 > Could you please explain a bit why txqflags is 0xf01? When mergeable is on, txqflag=3D0xf01 , 0xf00 has the same performance. I w= ill remove this parameter. > -----Original Message----- > From: Liu, Yong > Sent: Monday, December 19, 2016 1:59 PM > To: Yao, Lei A ; dts@dpdk.org > Cc: Yao, Lei A > Subject: RE: [dts] [PATCH V1] test_plans: add test plan for vhost pvp > performance test case based on qemu >=20 > Lei, few comments as below. >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yao Lei > > Sent: Monday, December 19, 2016 1:34 PM > > To: dts@dpdk.org > > Cc: Yao, Lei A > > Subject: [dts] [PATCH V1] test_plans: add test plan for vhost pvp > > performance test case based on qemu > > > > From: lei yao > > > > Signed-off-by: lei yao > > --- > > .../vhost_qemu_pvp_performance_test_plan.rst | 137 > > +++++++++++++++++++++ > > 1 file changed, 137 insertions(+) > > create mode 100644 > test_plans/vhost_qemu_pvp_performance_test_plan.rst > > > > diff --git a/test_plans/vhost_qemu_pvp_performance_test_plan.rst > > b/test_plans/vhost_qemu_pvp_performance_test_plan.rst > > new file mode 100644 > > index 0000000..182f79a > > --- /dev/null > > +++ b/test_plans/vhost_qemu_pvp_performance_test_plan.rst > > @@ -0,0 +1,137 @@ > > +.. Copyright (c) <2016>, Intel Corporation > > + All rights reserved. > > + > > + Redistribution and use in source and binary forms, with or without > > + modification, are permitted provided that the following conditions > > + are met: > > + > > + - Redistributions of source code must retain the above copyright > > + notice, this list of conditions and the following disclaimer. > > + > > + - Redistributions in binary form must reproduce the above copyright > > + notice, this list of conditions and the following disclaimer in > > + the documentation and/or other materials provided with the > > + distribution. > > + > > + - Neither the name of Intel Corporation nor the names of its > > + contributors may be used to endorse or promote products derived > > + from this software without specific prior written permission. > > + > > + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND > CONTRIBUTORS > > + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT > NOT > > + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND > FITNESS > > + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > > + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, > INDIRECT, > > + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES > > + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE > GOODS OR > > + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > INTERRUPTION) > > + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > CONTRACT, > > + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF > ADVISED > > + OF THE POSSIBILITY OF SUCH DAMAGE. > > + > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > +DPDK Vhost Qemu pvp performance test plan > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +This test plan will cover the PVP performance test cases based on qemu > > settings > > + > > +Test Case 1: DPDK PVP performance on Mergeable path >=20 > Please keep same capital case, Mergeable should be mergeable. >=20 > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > Please keep header line the same length of case's name. >=20 >=20 > > +Flow: > > +TG(Traffic generator) --> NIC --> Vhost --> Virtio--> Vhost--> NIC--> = TG > > + > > +On host: > > + > > +1. first build the vhost-switch sample. >=20 > Should be "First" >=20 > > + > > +2. Start up vhost-switch, mergeable 0 means the jubmo frame feature is > > disabled. vm2vm 0 means only one vm without vm2vm communication. > Use 3core > > to launch the sample will get the best performance, 2 core will be used > > for data path, one core is master core for some configuration.:: > > + > Please keep one line in 79 characters. >=20 >=20 > > + taskset -c 18-20 ./vhost-switch -c 0x1c0000 -n 4 --huge-dir /mnt/h= uge > > --socket-mem 1024,1024 -- -p 0x1 --mergeable 0 --vm2vm 0 --socket- > > file ./vhost-net > > + > Same, please keep one line in 79 characters. >=20 > > + > > +3. Start VM with vhost-user as backend, add 2 virtio devices:: > > + > > + taskset -c 22-26 \ > > + qemu-system-x86_64 -name vm1 \ > > + -cpu host -enable-kvm -m 2048 -object memory-backend- > > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem - > > mem-prealloc \ > > + -smp cores=3D5,sockets=3D1 -drive file=3D/home/osimg/f23_liu.img = \ > > + -chardev socket,id=3Dchar0,path=3D./vhost-net \ > > + -netdev type=3Dvhost- > user,id=3Dmynet1,chardev=3Dchar0,vhostforce,queues=3D1 > > \ > > + -device virtio-net- > > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don,mq=3Don \ > > + -netdev tap,id=3Dipvm1,ifname=3Dtap4,script=3D/etc/qemu-ifup -dev= ice > > rtl8139,netdev=3Dipvm1,id=3Dnet0,mac=3D00:00:00:00:10:01 -vnc :10 -daem= onize > > + > > + > > +4. On VM1, ensure the same dpdk folder is copied and run testpmd, virt= io > > device is binded to igb_uio, use txqflags=3D0xf01 : >=20 > Could you please explain a bit why txqflags is 0xf01? txqflag=3D0xf01 , 0xf00 has the same performance. I will remove this parame= ter. >=20 >=20 > > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 4 -- -i -- > > txqflags=3D0xf01 > > + testpmd>start > > + > > +5. Send traffic to virtio device. DEST MAC as virtio1's MAC, VLAN ID a= s > > virtio1's VLAN. Measure the Performance. > > + > Please give some description about how to strip MAC and vlan. >=20 > > + > > +Test Case 2: DPDK PVP performance on Normal path > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Flow: > > +TG(Traffic generator) --> NIC --> Vhost --> Virtio--> Vhost--> NIC--> = TG > > + > > +On host: > > + > > +1. first build the vhost-switch sample. > > + > > +2. Start up vhost-switch, mergeable 0 means the jubmo frame feature is > > disabled. vm2vm 0 means only one vm without vm2vm communication. > Use 3core > > to launch the sample will get the best performance, 2 core will be used > > for data path, one core is master core for some configuration.:: > > + > > + taskset -c 18-20 ./vhost-switch -c 0x1c0000 -n 4 --huge-dir /mnt/h= uge > > --socket-mem 1024,1024 -- -p 0x1 --mergeable 0 --vm2vm 0 --socket- > > file ./vhost-net > > + > > + > > +3. Start VM with vhost-user as backend, add 2 virtio devices:: > > + > > + taskset -c 22-26 \ > > + qemu-system-x86_64 -name vm1 \ > > + -cpu host -enable-kvm -m 2048 -object memory-backend- > > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem - > > mem-prealloc \ > > + -smp cores=3D5,sockets=3D1 -drive file=3D/home/osimg/f23_liu.img = \ > > + -chardev socket,id=3Dchar0,path=3D./vhost-net \ > > + -netdev type=3Dvhost- > user,id=3Dmynet1,chardev=3Dchar0,vhostforce,queues=3D1 > > \ > > + -device virtio-net- > > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,mq=3Don \ > > + -netdev tap,id=3Dipvm1,ifname=3Dtap4,script=3D/etc/qemu-ifup -dev= ice > > rtl8139,netdev=3Dipvm1,id=3Dnet0,mac=3D00:00:00:00:10:01 -vnc :10 -daem= onize > > + > > + > > +4. On VM1, ensure the same dpdk folder is copied and run testpmd, virt= io > > device is binded to igb_uio, use txqflags=3D0xf01 : > > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 4 -- -i -- > > txqflags=3D0xf00 > > + testpmd>start > > + > > +5. Send traffic to virtio device. DEST MAC as virtio1's MAC, VLAN ID a= s > > virtio1's VLAN. Measure the Performance. > > + > > +Test Case 3: DPDK PVP performance on Vector path > > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Flow: > > +TG(Traffic generator) --> NIC --> Vhost --> Virtio--> Vhost--> NIC--> = TG > > + > > +On host: > > + > > +1. first build the vhost-switch sample. > > + > > +2. Start up vhost-switch, mergeable 0 means the jubmo frame feature is > > disabled. vm2vm 0 means only one vm without vm2vm communication. > Use 3core > > to launch the sample will get the best performance, 2 core will be used > > for data path, one core is master core for some configuration.:: > > + > > + taskset -c 18-20 ./vhost-switch -c 0x1c0000 -n 4 --huge-dir /mnt/h= uge > > --socket-mem 1024,1024 -- -p 0x1 --mergeable 0 --vm2vm 0 --socket- > > file ./vhost-net > > + > > + > > +3. Start VM with vhost-user as backend, add 2 virtio devices:: > > + > > + taskset -c 22-26 \ > > + qemu-system-x86_64 -name vm1 \ > > + -cpu host -enable-kvm -m 2048 -object memory-backend- > > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem - > > mem-prealloc \ > > + -smp cores=3D5,sockets=3D1 -drive file=3D/home/osimg/f23_liu.img = \ > > + -chardev socket,id=3Dchar0,path=3D./vhost-net \ > > + -netdev type=3Dvhost- > user,id=3Dmynet1,chardev=3Dchar0,vhostforce,queues=3D1 > > \ > > + -device virtio-net- > > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,mq=3Don \ > > + -netdev tap,id=3Dipvm1,ifname=3Dtap4,script=3D/etc/qemu-ifup -dev= ice > > rtl8139,netdev=3Dipvm1,id=3Dnet0,mac=3D00:00:00:00:10:01 -vnc :10 -daem= onize > > + > > + > > +4. On VM1, ensure the same dpdk folder is copied and run testpmd, virt= io > > device is binded to igb_uio, use txqflags=3D0xf01 : > > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 4 -- -i -- > > txqflags=3D0xf01 > > + testpmd>start > > + > > +5. Send traffic to virtio device. DEST MAC as virtio1's MAC, VLAN ID a= s > > virtio1's VLAN. Measure the Performance. > > -- > > 2.7.4