From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D08065F0F for ; Wed, 26 Dec 2018 07:46:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Dec 2018 22:46:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,399,1539673200"; d="scan'208";a="305054862" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga006.fm.intel.com with ESMTP; 25 Dec 2018 22:46:35 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 25 Dec 2018 22:46:35 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 25 Dec 2018 22:46:35 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.201]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.222]) with mapi id 14.03.0415.000; Wed, 26 Dec 2018 14:46:33 +0800 From: "Zhu, ShuaiX" To: "Wu, ChangqingX" , "dts@dpdk.org" CC: "Wu, ChangqingX" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V2] test_plans/external_memory_test_plan_V2 Thread-Index: AQHUnOJ+VSZyZoTSrUO87JJ/KOsdEKWQk4jA Date: Wed, 26 Dec 2018 06:46:32 +0000 Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B117C40@SHSMSX101.ccr.corp.intel.com> References: <1545804525-102300-1-git-send-email-changqingx.wu@intel.com> In-Reply-To: <1545804525-102300-1-git-send-email-changqingx.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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 V2] test_plans/external_memory_test_plan_V2 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: Wed, 26 Dec 2018 06:46:37 -0000 Tested-by : Zhu, ShuaiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of changqingxwu Sent: Wednesday, December 26, 2018 2:09 PM To: dts@dpdk.org Cc: Wu, ChangqingX Subject: [dts] [PATCH V2] test_plans/external_memory_test_plan_V2 add new external_memory_test_plan_V2 Signed-off-by: changqingxwu --- test_plans/external_memory_test_plan.rst | 93 ++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 test_plans/external_memory_test_plan.rst diff --git a/test_plans/external_memory_test_plan.rst b/test_plans/external= _memory_test_plan.rst new file mode 100644 index 0000000..42f5772 --- /dev/null +++ b/test_plans/external_memory_test_plan.rst @@ -0,0 +1,93 @@ +.. Copyright (c) <2015-2018>, 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 +Ability to use external memory test plan=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 + +Description: +------------ +Provide an abstraction for DPDK hugepage allocation, to have a=20 +"default" memory allocator that will allocate hugepages, but also have=20 +custom allocator support for external memory. + +Test case 1: IGB_UIO and anonymous memory allocation +----------------------------------------------------- +Bind the ports to IGB_UIO driver + +Start testpmd with --mp-alloc=3Dxmem flag:: + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --=20 + --mp-alloc=3Dxmem -i + +Start forward in testpmd + +Start send traffic from outside to test the forward function + + +Test case 2: IGB_UIO and anonymous hugepage memory allocation +-------------------------------------------------------------- + +Bind the ports to IGB_UIO driver + +Start testpmd with --mp-alloc=3Dxmemhuge flag:: + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --=20 + --mp-alloc=3Dxmemhuge -i + +Start forward in testpmd + +Start send traffic from outside to test the forward function + + +Test case 3: VFIO and anonymous memory allocation +-------------------------------------------------- +Bind the ports to vfio-pci driver + +Start testpmd with --mp-alloc=3Dxmem flag:: + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --=20 + --mp-alloc=3Dxmem -i + +Start forward in testpmd + +Start send traffic from outside to test the forward function + + +Test case 4: VFIO and anonymous hugepage memory allocation +----------------------------------------------------------- +Bind the ports to vfio-pci driver + +Start testpmd with --mp-alloc=3Dxmemhuge flag:: + + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --=20 + --mp-alloc=3Dxmemhuge -i + +Start forward in testpmd + +Start send traffic from outside to test the forward function \ No newline at end of file -- 2.17.2