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 24B5A427EC; Tue, 21 Mar 2023 03:47:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E636940697; Tue, 21 Mar 2023 03:47:07 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 6E48940693 for ; Tue, 21 Mar 2023 03:47:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679366826; x=1710902826; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mc+FMcO7LRkQ8lNWc1FSEn+mhABBuHZPohyGB6gVaZ0=; b=OndBnOZgyynm2FXcLEpHErJvSBZTT5/ZOlYBxg7tNsgFT0JFxY2U8Fxj nIPC4EgiYy+5e8Os3DIVE2IsbzKzjOt33jlf9uiLxikuPT7Use7Y0Urqw qZcO07Gc6yPUJLGSTcUPu+W9A9XKhGaW3yp45gEbOBkqZJ1bQ5Hr15UUM oWgv9WOkQHW9HzTS2S5E1GnBCb/rqvBqAzFDMpzb3s1pZR+jxn1+WkBRq ASHPl2pxPiPpAmRHZrqFKXmLCVv+lYaBUEcNWS6bH1Rurcwqz3CAfEUta Wd4ZYu59+Gph+sQ+maKxQmvhQKCuN9BVnvsi8SQN7VdBfAxm+a4rfgMmA Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="366559078" X-IronPort-AV: E=Sophos;i="5.98,277,1673942400"; d="scan'208";a="366559078" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 19:47:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="683684004" X-IronPort-AV: E=Sophos;i="5.98,277,1673942400"; d="scan'208";a="683684004" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 19:47:04 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] tests/pvp_multi_paths_*: modify pktgen options parameter Date: Tue, 21 Mar 2023 10:45:05 +0800 Message-Id: <20230321024505.3911734-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 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 Modify pktgen options parameter `trans_options = {"delay": 5, "duration": 30}` to get stable throughput value. Signed-off-by: Wei Ling --- tests/TestSuite_pvp_multi_paths_performance.py | 5 ++++- ...estSuite_pvp_multi_paths_vhost_single_core_performance.py | 5 ++++- ...stSuite_pvp_multi_paths_virtio_single_core_performance.py | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_pvp_multi_paths_performance.py b/tests/TestSuite_pvp_multi_paths_performance.py index 99bfbf1f..6f80cb84 100644 --- a/tests/TestSuite_pvp_multi_paths_performance.py +++ b/tests/TestSuite_pvp_multi_paths_performance.py @@ -104,7 +104,10 @@ class TestPVPMultiPathPerformance(TestCase): streams = self.pktgen_helper.prepare_stream_from_tginput( tgen_input, 100, None, self.tester.pktgen ) - _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) + trans_options = {"delay": 5, "duration": 30} + _, pps = self.tester.pktgen.measure_throughput( + stream_ids=streams, options=trans_options + ) Mpps = pps / 1000000.0 self.throughput[frame_size][self.nb_desc] = Mpps linerate = ( diff --git a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py index b3bcc4cb..c0f56ad2 100644 --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py @@ -103,7 +103,10 @@ class TestPVPMultiPathVhostPerformance(TestCase): streams = self.pktgen_helper.prepare_stream_from_tginput( tgen_input, 100, None, self.tester.pktgen ) - _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) + trans_options = {"delay": 5, "duration": 30} + _, pps = self.tester.pktgen.measure_throughput( + stream_ids=streams, options=trans_options + ) Mpps = pps / 1000000.0 linerate = ( Mpps diff --git a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py index 6972f569..f0c53336 100644 --- a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py +++ b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py @@ -105,9 +105,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase): tgen_input, 100, None, self.tester.pktgen ) # set traffic option - traffic_opt = {"delay": 5} + trans_options = {"delay": 5, "duration": 30} _, pps = self.tester.pktgen.measure_throughput( - stream_ids=streams, options=traffic_opt + stream_ids=streams, options=trans_options ) Mpps = pps / 1000000.0 linerate = ( -- 2.25.1