From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AC31DC1EE for ; Wed, 6 Jun 2018 07:32:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2018 22:32:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,482,1520924400"; d="scan'208";a="60760232" Received: from shecgisg006.sh.intel.com ([10.239.39.68]) by fmsmga004.fm.intel.com with ESMTP; 05 Jun 2018 22:32:39 -0700 Received: from shecgisg006.sh.intel.com (localhost [127.0.0.1]) by shecgisg006.sh.intel.com with ESMTP id w565Wdti021509; Wed, 6 Jun 2018 13:32:39 +0800 Received: (from yufengmx@localhost) by shecgisg006.sh.intel.com with œ id w565Wd5g021505; Wed, 6 Jun 2018 13:32:39 +0800 From: yufengx.mo@intel.com To: dts@dpdk.org Cc: yufengmx Date: Wed, 6 Jun 2018 13:32:37 +0800 Message-Id: <1528263159-21324-2-git-send-email-yufengx.mo@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1528263159-21324-1-git-send-email-yufengx.mo@intel.com> References: <1528263159-21324-1-git-send-email-yufengx.mo@intel.com> Subject: [dts] [PATCH V1 1/2] memory_register: upstream test plan 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, 06 Jun 2018 05:32:44 -0000 From: yufengmx This test plan is for memory_register feature. It is a feature related with DPDK Memory System Redesign sub task Register/unregister memory with vfio dynamically. Signed-off-by: yufengmx --- test_plans/memory_register_test_plan.rst | 204 +++++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+) create mode 100644 test_plans/memory_register_test_plan.rst diff --git a/test_plans/memory_register_test_plan.rst b/test_plans/memory_register_test_plan.rst new file mode 100644 index 0000000..f020b82 --- /dev/null +++ b/test_plans/memory_register_test_plan.rst @@ -0,0 +1,204 @@ +.. Copyright (c) <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. + +=============== +memory register +=============== + +It is a way to register memory outside hugepages with DPDK after start up. +Specifically, the registered memory will be the target of DMA operations and +use it for allocations through rte_malloc or rte_mempool. + +This feature should work for both uio and vfio. There are no performance +requirements around how quickly new memory can be registered or unregistered, +but calls to translate virtual to physical addresses should remain fast. + +It is a feature related with DPDK's ``Memory System Redesign`` sub task +``Register/unregister memory with vfio dynamically``. + +Prerequisites +------------- +2xNICs (2 full duplex optical ports per NIC) + no nic type limitation + +bind port number:: + one port + four port + +driver:: + vfio-pci + igb_uio + +HW configuration +---------------- +1U socket/2U socket:: + SuperMicro 1U Xeon D Broadwell SoC uServer(1U Socket) + Broadwell-EP Xeon E5-2600(2U Socket) + +Test cases +---------- + +DPDK has no custom example or unit test binary to test memory register/ +unregister. The idea behind the testing process is to run dpdk unit test related +with memory. It is the only method to test this feature. `Memory System Redesign` +task is related with all dpdk memory management mechanism, including +malloc/mbuf/memory/mempool/memcpy/memzone. Run Compound test based on +driver/port number/socket type + + Test Case : dpdk malloc autotest +================================= +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run malloc_autotest + + RTE>> malloc_autotest + +*. check ``test ok`` in output + + Test Case : dpdk mbuf autotest +=============================== +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run mbuf_autotest + + RTE>> mbuf_autotest + +*. check ``test ok`` in output + + Test Case : dpdk memcpy autotest +================================= +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run memcpy_autotest + + RTE>> memcpy_autotest + +*. check ``test ok`` in output + + Test Case : dpdk memcpy perf autotest +====================================== +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run memcpy_perf_autotest + + RTE>> memcpy_perf_autotest + +*. check ``test ok`` in output + + Test Case : dpdk memory autotest +================================= +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run memory_autotest + + RTE>> memory_autotest + +*. check ``test ok`` in output + +Test Case : dpdk mempool autotest +================================= +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run mempool_autotest + + RTE>> mempool_autotest + +*. check ``test ok`` in output + + Test Case : dpdk mempool perf autotest +======================================= +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run mempool_perf_autotest + + RTE>> mempool_perf_autotest + +*. check ``test ok`` in output + + Test Case : dpdk memzone autotest +================================== +*. bind ports + + ./usertools/dpdk_nic_bind.py --bind= + +*. boot up unit test binary ``test`` + + ./test/app/test -n 1 -c f + +*. run memzone_autotest + + RTE>> memzone_autotest + +*. check ``test ok`` in output + -- 1.9.3