From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 180F2A0548; Wed, 8 Jun 2022 06:50:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40F164021F; Wed, 8 Jun 2022 06:50:36 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id BEAF24021D for ; Wed, 8 Jun 2022 06:50:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654663834; x=1686199834; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yNicaoP6UxU/cLsqgFYN89aYZmRfRKbBA3gb0FjSYxg=; b=nbPHTqw3Y/qCpS6ljmQCs/7SfQNPgPft+DxzxZhhpyV0J9lmkRPL/CdW iujxUWzTUr1+Wg/vMnlKIj85XqfAGuTjkJkcqfrh2VCE8HgKpMtF6Jau4 DQMAvUphnCzKbjMqD3vjdoDOgQHdbaJ/vD6XUb3QqHZzUDUm0xgt0KymI HvnfgKLTyU7Ktm8IB5jcETDRi9DGvs8wB47wJwF7wHPUjPYBaTmBZTuPQ zghZRfWZDvF1ikSBZT5gJDjnJq6bnwyH/1tH+PmiLDouXSn3RcGjDPR/2 Rcaio29+wj3ol1oTGjLgM4c45EooZ0uk/TWdJGA7hHULhN7yLFyicFYPq w==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="363129044" X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="363129044" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 21:50:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="670346466" Received: from dpdk-yaqi.sh.intel.com ([10.67.118.178]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jun 2022 21:50:33 -0700 From: Yaqi Tang To: dts@dpdk.org Cc: Yaqi Tang Subject: [dts][PATCH V1] test_plans/short_live: modify testpmd config param Date: Wed, 8 Jun 2022 04:50:29 +0000 Message-Id: <20220608045029.350571-2-yaqi.tang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220608045029.350571-1-yaqi.tang@intel.com> References: <20220608045029.350571-1-yaqi.tang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org The tetspmd config param of the test plan is not match that of the test script, so modify test plan testpmd config param. And adjust the format of test plan according to test plan template. Signed-off-by: Yaqi Tang --- test_plans/short_live_test_plan.rst | 85 +++++++++++++++++------------ 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/test_plans/short_live_test_plan.rst b/test_plans/short_live_test_plan.rst index 2f6c9cb1..e72287a0 100644 --- a/test_plans/short_live_test_plan.rst +++ b/test_plans/short_live_test_plan.rst @@ -5,11 +5,13 @@ Short-lived Application Tests ============================= +Description +=========== This feature is to reduce application start-up time, and do more cleanup when exit so that it could rerun many times. Prerequisites -------------- +============= To test this feature, need to use linux time and start testpmd by: create and mount hugepage, must create more hugepages so that could measure time more @@ -27,16 +29,18 @@ Start testpmd using time:: # echo quit | time ./app/dpdk-testpmd -c 0x3 -n 4 -- -i -Test Case 1: basic fwd testing +Test Case 1: Basic fwd testing ------------------------------ 1. Start testpmd:: ./app/dpdk-testpmd -c 0x3 -n 4 -- -i -2. Set fwd mac -3. Send packet from pkg -4. Check all packets could be fwd back +2. Set fwd mac. + +3. Send packet from pkg. + +4. Check all packets could be fwd back. Test Case 2: Get start up time ------------------------------ @@ -45,8 +49,9 @@ Test Case 2: Get start up time echo quit | time ./app/dpdk-testpmd -c 0x3 -n 4 --huge-dir /mnt/huge -- -i -2. Get the time stats of the startup -3. Repeat step 1~2 for at least 5 times to get the average +2. Get the time stats of the startup. + +3. Repeat step 1~2 for at least 5 times to get the average. Test Case 3: Clean up with Signal -- testpmd -------------------------------------------- @@ -58,69 +63,77 @@ Test Case 3: Clean up with Signal -- testpmd 2. Start testpmd:: - ./app/dpdk-testpmd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -i + ./app/dpdk-testpmd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -i --portmask=0x3 + +3. Set fwd mac. + +4. Send packets from pkg. + +5. Check all packets could be fwd back. -3. Set fwd mac -4. Send packets from pkg -5. Check all packets could be fwd back 6. Kill the testpmd in shell using below commands alternately:: - SIGINT: pkill -2 dpdk-testpmd - SIGTERM: pkill -15 dpdk-testpmd + SIGINT: pkill -2 dpdk-testpmd + SIGTERM: pkill -15 dpdk-testpmd 7. Repeat step 1-6 for 20 times, and packet must be fwd back with no error for each time. - Test Case 4: Clean up with Signal -- l2fwd ------------------------------------------ -0. Build l2fwd example:: +1. Build l2fwd example:: meson configure -Dexamples=l2fwd x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc -1. Create 4G hugepages, so that could save times when repeat:: +2. Create 4G hugepages, so that could save times when repeat:: echo 2048 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages mount -t hugetlbfs hugetlbfs /mnt/huge1 -2. Start testpmd:: +3. Start testpmd:: - ./examples/dpdk-l2fwd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -p 0x01 + ./examples/dpdk-l2fwd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -p 0x03 -3. Set fwd mac -4. Send packets from pkg -5. Check all packets could be fwd back -6. Kill the testpmd in shell using below commands alternately:: +4. Set fwd mac. - SIGINT: pkill -2 dpdk-l2fwd - SIGTERM: pkill -15 dpdk-l2fwd +5. Send packets from pkg. -7. Repeat step 1-6 for 20 times, and packet must be fwd back with no error for each time. +6. Check all packets could be fwd back. + +7. Kill the testpmd in shell using below commands alternately:: + + SIGINT: pkill -2 dpdk-l2fwd + SIGTERM: pkill -15 dpdk-l2fwd + +8. Repeat step 1-6 for 20 times, and packet must be fwd back with no error for each time. Test Case 5: Clean up with Signal -- l3fwd ------------------------------------------ -0. Build l3fwd example:: +1. Build l3fwd example:: meson configure -Dexamples=l3fwd x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc -1. Create 4G hugepages, so that could save times when repeat:: +2. Create 4G hugepages, so that could save times when repeat:: echo 2048 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages mount -t hugetlbfs hugetlbfs /mnt/huge1 -2. Start testpmd:: +3. Start testpmd:: - ./examples/dpdk-l3fwd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -p 0x01 --config="(0,0,1)" + ./examples/dpdk-l3fwd -c 0x3 -n 4 --huge-dir /mnt/huge1 -- -p 0x03 --config='(0,0,1),(1,0,2)' & -3. Set fwd mac -4. Send packets from pkg -5. Check all packets could be fwd back -6. Kill the testpmd in shell using below commands alternately:: +4. Set fwd mac. - SIGINT: pkill -2 dpdk-l3fwd - SIGTERM: pkill -15 dpdk-l3fwd +5. Send packets from pkg. -7. Repeat step 1-6 for 20 times, and packet must be fwd back with no error for each time. +6. Check all packets could be fwd back. + +7. Kill the testpmd in shell using below commands alternately:: + + SIGINT: pkill -2 dpdk-l3fwd + SIGTERM: pkill -15 dpdk-l3fwd + +8. Repeat step 1-6 for 20 times, and packet must be fwd back with no error for each time. -- 2.25.1