From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 80051558C for ; Mon, 12 Sep 2016 13:38:29 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 4A1342546A; Mon, 12 Sep 2016 13:38:29 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org, pablo.de.lara.guarch@intel.com, bruce.richardson@intel.com Date: Mon, 12 Sep 2016 13:38:08 +0200 Message-Id: <1473680288-29525-1-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 Subject: [dpdk-dev] [PATCH] app/test: decrease memory requirements for hash X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2016 11:38:29 -0000 In hash autotest, the size of tables that should be succesfully created is 32K entries (256KB), except for the table called "different_name", which is 1M entries (8MB). When memory is too fragmented (with 2M hugepages), the test can fail. To avoid allocation failures due to memory fragmentation, decrease the size of the table to 32K. Signed-off-by: Olivier Matz --- app/test/test_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 94300e1..2c87efe 100644 --- a/app/test/test_hash.c +++ b/app/test/test_hash.c @@ -783,7 +783,7 @@ fbk_hash_unit_test(void) */ struct rte_fbk_hash_params different_name = { .name = "different_name", /* different name */ - .entries = RTE_FBK_HASH_ENTRIES_MAX, + .entries = LOCAL_FBK_HASH_ENTRIES_MAX, .entries_per_bucket = 4, .socket_id = 0, }; -- 2.8.1