* [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV
@ 2020-04-07 9:14 Xiao Qimai
2020-04-07 9:20 ` Xiao, QimaiX
2020-04-17 9:04 ` Tu, Lijuan
0 siblings, 2 replies; 3+ messages in thread
From: Xiao Qimai @ 2020-04-07 9:14 UTC (permalink / raw)
To: dts; +Cc: Xiao Qimai
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py b/tests/TestSuite_vhost_dequeue_zero_copy.py
index f426fe3..e13e385 100644
--- a/tests/TestSuite_vhost_dequeue_zero_copy.py
+++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
@@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase):
self.vm_dut = None
self.big_pkt_record = {}
+ @property
+ def check_2M_env(self):
+ out = self.dut.send_expect("cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'", "# ")
+ return True if out == '2048' else False
+
def get_core_list(self):
"""
check whether the server has enough cores to run case
@@ -150,6 +155,8 @@ class TestVhostDequeueZeroCopy(TestCase):
para = " -- -i --tx-offloads=0x0 --nb-cores=%d --txd=1024 --rxd=1024" % self.nb_cores
eal_params = self.dut.create_eal_parameters(cores=core_list[len(self.core_list):],
prefix='virtio', no_pci=True)
+ if self.check_2M_env:
+ eal_params += " --single-file-segments"
command_line = testcmd + eal_params + vdev + para
self.virtio_user.send_expect(command_line, 'testpmd> ', 120)
self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120)
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV
2020-04-07 9:14 [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV Xiao Qimai
@ 2020-04-07 9:20 ` Xiao, QimaiX
2020-04-17 9:04 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Xiao, QimaiX @ 2020-04-07 9:20 UTC (permalink / raw)
To: dts
Tested-by: Xiao, QimaiX <qimaix.xiao@intel.com>
Regards,
Xiao Qimai
> -----Original Message-----
> From: Xiao, QimaiX
> Sent: Tuesday, April 7, 2020 5:15 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts][PATCH V1]vhost_dequeue_zero_copy: add --single-file-
> segments param for 2M ENV
>
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
> tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py
> b/tests/TestSuite_vhost_dequeue_zero_copy.py
> index f426fe3..e13e385 100644
> --- a/tests/TestSuite_vhost_dequeue_zero_copy.py
> +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
> @@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase):
> self.vm_dut = None
> self.big_pkt_record = {}
>
> + @property
> + def check_2M_env(self):
> + out = self.dut.send_expect("cat /proc/meminfo |grep
> Hugepagesize|awk '{print($2)}'", "# ")
> + return True if out == '2048' else False
> +
> def get_core_list(self):
> """
> check whether the server has enough cores to run case @@ -150,6
> +155,8 @@ class TestVhostDequeueZeroCopy(TestCase):
> para = " -- -i --tx-offloads=0x0 --nb-cores=%d --txd=1024 --rxd=1024" %
> self.nb_cores
> eal_params =
> self.dut.create_eal_parameters(cores=core_list[len(self.core_list):],
> prefix='virtio', no_pci=True)
> + if self.check_2M_env:
> + eal_params += " --single-file-segments"
> command_line = testcmd + eal_params + vdev + para
> self.virtio_user.send_expect(command_line, 'testpmd> ', 120)
> self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120)
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV
2020-04-07 9:14 [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV Xiao Qimai
2020-04-07 9:20 ` Xiao, QimaiX
@ 2020-04-17 9:04 ` Tu, Lijuan
1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-04-17 9:04 UTC (permalink / raw)
To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai
> Sent: Tuesday, April 7, 2020 5:15 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-
> segments param for 2M ENV
>
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
> tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py
> b/tests/TestSuite_vhost_dequeue_zero_copy.py
> index f426fe3..e13e385 100644
> --- a/tests/TestSuite_vhost_dequeue_zero_copy.py
> +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
> @@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase):
> self.vm_dut = None
> self.big_pkt_record = {}
>
> + @property
> + def check_2M_env(self):
> + out = self.dut.send_expect("cat /proc/meminfo |grep
> Hugepagesize|awk '{print($2)}'", "# ")
> + return True if out == '2048' else False
> +
> def get_core_list(self):
> """
> check whether the server has enough cores to run case @@ -150,6
> +155,8 @@ class TestVhostDequeueZeroCopy(TestCase):
> para = " -- -i --tx-offloads=0x0 --nb-cores=%d --txd=1024 --rxd=1024" %
> self.nb_cores
> eal_params =
> self.dut.create_eal_parameters(cores=core_list[len(self.core_list):],
> prefix='virtio', no_pci=True)
> + if self.check_2M_env:
> + eal_params += " --single-file-segments"
> command_line = testcmd + eal_params + vdev + para
> self.virtio_user.send_expect(command_line, 'testpmd> ', 120)
> self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120)
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-17 9:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 9:14 [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV Xiao Qimai
2020-04-07 9:20 ` Xiao, QimaiX
2020-04-17 9:04 ` Tu, Lijuan
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).