As of now the over flow entries are represented using bitmap. To
allocate a free entry this bitmap is searched for free bit. This can
lead to performance issues if most of the entries are used and very few
entries are empty, as there will be search of complete bitmap.
To overcome this, the free overflow entries are maintained as a linked
list, and entry from head of the list is used to allocate one. To
release it, the entry is added back at head.
Reviewed: https:/ /review. opencontrail. org/14730 github. org/Juniper/ contrail- vrouter/ commit/ 04cadf78d665158 0b8b007d9792550 87259b8112
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 04cadf78d665158 0b8b007d9792550 87259b8112
Author: Divakar <email address hidden>
Date: Fri Oct 30 21:37:25 2015 +0530
Maintaining free overflow entries as linked list
As of now the over flow entries are represented using bitmap. To
allocate a free entry this bitmap is searched for free bit. This can
lead to performance issues if most of the entries are used and very few
entries are empty, as there will be search of complete bitmap.
To overcome this, the free overflow entries are maintained as a linked
list, and entry from head of the list is used to allocate one. To
release it, the entry is added back at head.
Change-Id: I20343a0be290c5 40a935adac4ef26 14bf5f955e4
closes-bug: #1497833