DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched
@ 2016-09-12 11:38 Olivier Matz
  2016-09-15 14:15 ` Dumitrescu, Cristian
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Matz @ 2016-09-12 11:38 UTC (permalink / raw)
  To: dev, cristian.dumitrescu

The sched test consumes 35MB memory. When memory is too fragmented (with
2M hugepages), the test can fail.

To reduce this risk, decrease it to 4.5MB by modifying
n_pipes_per_subport and qsize.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
 app/test/test_sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test/test_sched.c b/app/test/test_sched.c
index 63ab084..bd2776d 100644
--- a/app/test/test_sched.c
+++ b/app/test/test_sched.c
@@ -79,8 +79,8 @@ static struct rte_sched_port_params port_param = {
 	.mtu = 1522,
 	.frame_overhead = RTE_SCHED_FRAME_OVERHEAD_DEFAULT,
 	.n_subports_per_port = 1,
-	.n_pipes_per_subport = 4096,
-	.qsize = {64, 64, 64, 64},
+	.n_pipes_per_subport = 1024,
+	.qsize = {32, 32, 32, 32},
 	.pipe_profiles = pipe_profile,
 	.n_pipe_profiles = 1,
 };
-- 
2.8.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched
  2016-09-12 11:38 [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched Olivier Matz
@ 2016-09-15 14:15 ` Dumitrescu, Cristian
  2016-09-23 16:44   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Dumitrescu, Cristian @ 2016-09-15 14:15 UTC (permalink / raw)
  To: Olivier Matz, dev



> -----Original Message-----
> From: Olivier Matz [mailto:olivier.matz@6wind.com]
> Sent: Monday, September 12, 2016 12:39 PM
> To: dev@dpdk.org; Dumitrescu, Cristian <cristian.dumitrescu@intel.com>
> Subject: [PATCH] app/test: decrease memory requirements for sched
> 
> The sched test consumes 35MB memory. When memory is too fragmented
> (with
> 2M hugepages), the test can fail.
> 
> To reduce this risk, decrease it to 4.5MB by modifying
> n_pipes_per_subport and qsize.
> 
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> ---

Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched
  2016-09-15 14:15 ` Dumitrescu, Cristian
@ 2016-09-23 16:44   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2016-09-23 16:44 UTC (permalink / raw)
  To: Olivier Matz; +Cc: dev, Dumitrescu, Cristian

> > The sched test consumes 35MB memory. When memory is too fragmented
> > (with
> > 2M hugepages), the test can fail.
> > 
> > To reduce this risk, decrease it to 4.5MB by modifying
> > n_pipes_per_subport and qsize.
> > 
> > Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> 
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-23 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-12 11:38 [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched Olivier Matz
2016-09-15 14:15 ` Dumitrescu, Cristian
2016-09-23 16:44   ` Thomas Monjalon

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).