app/test: decrease memory requirements for hash
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 12 Sep 2016 11:38:08 +0000 (13:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 16:40:50 +0000 (18:40 +0200)
commitc4783d9666ffad2bd95742b1292f68996f750b26
treec9001e7fe88f110b3e7953f99158a629e1ee8c33
parent677aa5129b2d27c0a1c7dcad64ea682430275a14
app/test: decrease memory requirements for hash

In hash autotest, the size of tables that should be successfully 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 <olivier.matz@6wind.com>
app/test/test_hash.c