From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V1] tests/pvp_multi_paths_*: modify pktgen options parameter
Date: Tue, 21 Mar 2023 10:45:05 +0800 [thread overview]
Message-ID: <20230321024505.3911734-1-weix.ling@intel.com> (raw)
Modify pktgen options parameter `trans_options = {"delay": 5, "duration": 30}`
to get stable throughput value.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
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
next reply other threads:[~2023-03-21 2:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 2:45 Wei Ling [this message]
2023-03-28 1:15 ` lijuan.tu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230321024505.3911734-1-weix.ling@intel.com \
--to=weix.ling@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).