DPDK patches and discussions
 help / color / mirror / Atom feed
From: Michael Santana <msantana@redhat.com>
To: dev@dpdk.org
Cc: cristian.dumitrescu@intel.com,
	Michael Santana Francisco <msantana@redhat.com>
Subject: [dpdk-dev] [PATCH] test/table_autotest: Decrease memory requirement
Date: Thu, 25 Jul 2019 17:31:38 -0400	[thread overview]
Message-ID: <20190725213138.32588-1-msantana@redhat.com> (raw)

This patch reduces the memory footprint of tables for the unit test.
Lower memory footprint means the test now passes when trying to allocate
the tables.

Signed-off-by: Michael Santana <msantana@redhat.com>
---
 app/test/test_table_tables.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c
index 20df2e922..21c4086c2 100644
--- a/app/test/test_table_tables.c
+++ b/app/test/test_table_tables.c
@@ -464,7 +464,7 @@ test_table_lpm_ipv6(void)
 	struct rte_table_lpm_ipv6_params lpm_params = {
 		.name = "LPM",
 		.n_rules = 1 << 24,
-		.number_tbl8s = 1 << 21,
+		.number_tbl8s = 1 << 18,
 		.entry_unique_size = entry_size,
 		.offset = APP_METADATA_OFFSET(32)
 	};
@@ -492,7 +492,7 @@ test_table_lpm_ipv6(void)
 	if (table != NULL)
 		return -4;
 
-	lpm_params.number_tbl8s = 1 << 21;
+	lpm_params.number_tbl8s = 1 << 18;
 	lpm_params.entry_unique_size = 0;
 	table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size);
 	if (table != NULL)
-- 
2.20.1


             reply	other threads:[~2019-07-25 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25 21:31 Michael Santana [this message]
2019-07-26  7:09 ` David Marchand
2019-07-26 15:04   ` Michael Santana Francisco
2019-07-26  9:35 ` Dumitrescu, Cristian
2019-07-29 15:18 ` [dpdk-dev] [PATCH v2] " Michael Santana
2019-07-30  9:27   ` 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=20190725213138.32588-1-msantana@redhat.com \
    --to=msantana@redhat.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).