[ovs-dev] [PATCH] cmap: Shrink cmap when load factor is below 20%.

Ben Pfaff blp at nicira.com
Fri Nov 21 16:36:17 UTC 2014


On Thu, Nov 20, 2014 at 10:11:46PM -0800, Alex Wang wrote:
> This commit adds check in cmap_remove() and shrinks the cmap by half
> if the load factor is below 20%.  This is to reduce the memory
> utilization of cmap and to avoid the allocated cmap memory occupying
> the top of heap memory, preventing the trim of heap.
> 
> Signed-off-by: Alex Wang <alexw at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list