[v2] test/table_autotest: Decrease memory requirement

Message ID 20190729151834.13742-1-msantana@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series [v2] test/table_autotest: Decrease memory requirement |

Checks

Context Check Description
ci/iol-Compile-Testing success Compile Testing PASS
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Michael Santana July 29, 2019, 3:18 p.m. UTC
  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. This patch is mainly to make table_autotest pass in CI.

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

Comments

Thomas Monjalon July 30, 2019, 9:27 a.m. UTC | #1
29/07/2019 17:18, Michael Santana:
> 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. This patch is mainly to make table_autotest pass in CI.
> 
> Signed-off-by: Michael Santana <msantana@redhat.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Applied, thanks
  

Patch

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)