Could be. In real life, objects allocated from pools have widely variable lifetimes. It would be virtually impossible to unmap less than an entire pool.
If your application would tolerate something akin garbage collection, I suppose you could create a fresh pool with a fresh set of indices, and free the original. Personally, I would never go in this direction. HTH... Dave From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Satya Murthy Sent: Wednesday, April 1, 2020 8:59 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] naive questions on VPP memory usage ( does it ever come down ) Few questions on VPP memory usage. 1. Using pmap -p <pid of vpp> i am collecting the total memory usage of vpp process at the beginning of my test. ( it is X KB ) 2. I ran test for few hours which will obviously have lot of pool_get/pool_put 3. Collected the same same pmap output and the memory usage grown to X+Y 4. Cleared all my sessions which ideally should have cleared all my allocations. 5. I still see the memory usage being stuck at X+Y I see that only pool_free is doing unmap of the memory, whereas pool_put is not doing so. Could this be the reason why I am seeing memory not coming down. Thanks & Regards, Satish -- Thanks & Regards, Murthy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15968): https://lists.fd.io/g/vpp-dev/message/15968 Mute This Topic: https://lists.fd.io/mt/72699704/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-