From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 79F8B37B4 for ; Wed, 29 Mar 2017 08:39:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490769556; x=1522305556; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=bkZx8mR8pfylQKj0KQKVULrYO+Mo+j3jHvYFUXmVSjc=; b=j/cjg+fylRb06+23W4IbHcfq48KJnz32EQtAjKeKX51+C4x5QUw3yewP PuSBOpvGSNB9hdZaYu3QLfX+lC256Q==; Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2017 23:39:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,240,1486454400"; d="scan'208";a="66311486" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 28 Mar 2017 23:39:14 -0700 From: "xu,gang" To: dts@dpdk.org Cc: "xu,gang" Date: Wed, 29 Mar 2017 14:40:38 +0800 Message-Id: <1490769638-113759-2-git-send-email-gangx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1490769638-113759-1-git-send-email-gangx.xu@intel.com> References: <1490769638-113759-1-git-send-email-gangx.xu@intel.com> Subject: [dts] [PATCH V1 2/2] add l2fwd_jobstats 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, 29 Mar 2017 06:39:16 -0000 Signed-off-by: xu,gang --- test_plans/l2fwd_jobstats_test_plan.rst | 139 ++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 test_plans/l2fwd_jobstats_test_plan.rst diff --git a/test_plans/l2fwd_jobstats_test_plan.rst b/test_plans/l2fwd_jobstats_test_plan.rst new file mode 100644 index 0000000..d78e798 --- /dev/null +++ b/test_plans/l2fwd_jobstats_test_plan.rst @@ -0,0 +1,139 @@ +.. 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. + +== == == == == == == == == == == == == == == == == +l2fwd - jobstats test plan +== == == == == == == == == == == == == == == == == + +This test plan will cover the basic l2fwd - jobstats case +and will be worked as a regression test plan. + +Test Case1: + check different send rate the sample received rate +== == == == == == == == == == == == == == == == == == == == == == == == +1. Bind two NIC port to igb_uio, then launch the l2fwd - jobstats sample + + app / l2fwd - jobstats - c 0x03 - n4 - - -q 2 - p 03 - l + testpmd > + +2. Check the output, the Idle(Job) should occupy most of the CPU time +and all statistic is zero. Like following: + +Port statistics == == == == == == == == == == == == == == == == == == == +Statistics for port 0 - ----------------------------- +Packets sent: + 0 +Packets received: + 0 +Packets dropped: + 0 +Statistics for port 1 - ----------------------------- +Packets sent: + 0 +Packets received: + 0 +Packets dropped: + 0 +Aggregate statistics == == == == == == == == == == == == == == == == == == +Total packets sent: + 0 +Total packets received: + 0 +Total packets dropped: + 0 +== == == == == == == == == == == == == == == == == == == == == == == == == +---------------- +LCore 0: + statistics(time in ns, collected in 275, 887, 870) +Stat type total % total avg min max +Stats duration: + 10, 275, 967, 160 +Loop count: + 304, 669 +Exec time 8, 127, 075 0.1 % 26 23 15, 956, 536 +Management time 316, 445, 834 3.1 % 1, 039 14 16, 002, 986 +Exec + management 324, 572, 909 3.2 % 1, 065 37 31, 959, 522 +Idle(job) 9, 951, 394, 251 96.8 % 47, 560 37 15, 956, 536 + +Job 0: + port 0 fwd +Exec count: + 101, 146 +Exec period: + 100, 035 +Exec time 2, 456, 268 0.0 % 24 23 843 + +Job 1: + port 1 fwd +Exec count: + 101, 146 +Exec period: + 100, 035 +Exec time 2, 469, 969 0.0 % 24 23 2, 086 + +Job 2: + flush +Exec count: + 102, 723 +Exec period: + 100, 036 +Exec time 3, 200, 838 0.0 % 31 30 471 +== == == == == == == == == == == == == == == == == == == == == == == == == == + +3.Send packets to NIC port with different rate, check the core status reported +by l2fwd - jobstats sample is correct Increase the packet send rate from 0 % +linerateto 100 % linerate. Check the "Exec + management" percentage can increase +with the packet rate accordingly + +Stat type total % total avg min max +Stats duration: + 10, 275, 967, 160 +Loop count: + 304, 669 +Exec time 8, 127, 075 0.1 % 26 23 15, 956, 536 +Management time 316, 445, 834 3.1 % 1, 039 14 16, 002, 986 +Exec + management 324, 572, 909 3.2 % 1, 065 37 31, 959, 522 +Idle(job) 9, 951, 394, 251 96.8 % 47, 560 37 15, 956, 536 + + +Test Case2: + Check the packet statistic is correct +== == == == == == == == == == == == == == == == == == == == == == == == == == == +1. Bind two NIC port to igb_uio, then launch the l2fwd - jobstats sample + + app / l2fwd - jobstats - c 0x03 - n4 - - -q 2 - p 03 - l + +2. Send 10, 000, 000 packet to port 1 and 10, 000, 000 packets to port 2, check the +NIC packets number reported by sample is the same with waht we set at the packet +generator side. -- 1.9.3