Not enough buckets for the number of active key/value pairs. Buckets are cheap. Start with nBuckets = nActiveSessions / (BIHASH_KVP_PER_PAGE / 2) or some such and increase the number of buckets as necessary...
HTH... Dave From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of chetan bhasin Sent: Thursday, April 7, 2022 7:28 AM To: vpp-dev <vpp-dev@lists.fd.io> Subject: [vpp-dev] Query Regarding Bihash (VPP 2106) Hi, We are using bihash where key is 5 tuple of the packet. There are different type of free list which are maintained and once an entry is allocated and removed from a bihash that memory still remain with the bihash for future usage. The problem we are seeing is consistent growth in the memory of bihash even after 24 hours of traffic , somehow memory is not coming in a stable situation. Any suggestions here are really appreciated. With 5 tuple and less buckets Hash table 'abc_v4_flow_hash' 5260666 active elements 131072 active buckets 11 free lists [len 2] 50214 free elts [len 4] 58542 free elts [len 8] 69288 free elts [len 16] 74395 free elts [len 32] 77187 free elts [len 64] 53558 free elts [len 128] 1 free elts 1788 linear search buckets heap: 25363 chunk(s) allocated bytes: used 2.33g, scrap 48.84m
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21223): https://lists.fd.io/g/vpp-dev/message/21223 Mute This Topic: https://lists.fd.io/mt/90310568/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-