path: root/tests/hash:ip6,port,ip6.t.list0
diff options
authorJozsef Kadlecsik <>2020-09-21 10:21:39 +0200
committerJozsef Kadlecsik <>2020-09-21 10:21:39 +0200
commitde340a7f1a9cf21931d94ea8814545c4b2d172b0 (patch)
tree0a69eaed9d425a233d4213e3cb3e129d5d25796f /tests/hash:ip6,port,ip6.t.list0
parentdfdbad53f9c5a7bc3f357b53f11a840c8fda3635 (diff)
Add bucketsize parameter to all hash types
The parameter defines the upper limit in any hash bucket at adding new entries from userspace - if the limit would be exceeded, ipset doubles the hash size and rehashes. It means the set may consume more memory but gives faster evaluation at matching in the set. Signed-off-by: Jozsef Kadlecsik <>
Diffstat (limited to 'tests/hash:ip6,port,ip6.t.list0')
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/hash:ip6,port,ip6.t.list0 b/tests/hash:ip6,port,ip6.t.list0
index 6fc6771..1594411 100644
--- a/tests/hash:ip6,port,ip6.t.list0
+++ b/tests/hash:ip6,port,ip6.t.list0
@@ -1,9 +1,8 @@
Name: test
Type: hash:ip,port,ip
-Header: family inet6 hashsize 1024 maxelem 65536 timeout x
-Size in memory: 1608
+Header: family inet6 hashsize 1024 maxelem 65536 timeout x bucketsize 12
+Size in memory: 880
References: 0
-Size in memory: 9104
Number of entries: 4
2:1::,tcp:128,2:2:2::2 timeout x