From: Olivier Matz <olivier.matz@6wind.com>
To: dev@dpdk.org, cristian.dumitrescu@intel.com
Subject: [dpdk-dev] [PATCH] app/test: decrease memory requirements for sched
Date: Mon, 12 Sep 2016 13:38:49 +0200 [thread overview]
Message-ID: <1473680329-29595-1-git-send-email-olivier.matz@6wind.com> (raw)
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
next reply other threads:[~2016-09-12 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 11:38 Olivier Matz [this message]
2016-09-15 14:15 ` Dumitrescu, Cristian
2016-09-23 16:44 ` Thomas Monjalon
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=1473680329-29595-1-git-send-email-olivier.matz@6wind.com \
--to=olivier.matz@6wind.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@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).