-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: DR, Improve insertion rate by pre-allocating STE shadow memory
During rule insertion on each ICM memory chunk we also allocate shadow memory used for management, this includes the hw_ste, dr_ste and miss list per entry. Since the scale of these allocations is large, we noticed a performance hiccup that can happen once malloc and free are stressed. To resolve this we will pre-allocate STE shadow memory upon buddy creation and use it upon chunk creation by pointing to the already allocated memory. This will increase the memory footprint but will help with the insertion rate. Signed-off-by: Hamdan Igbaria <hamdani@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Signed-off-by: Alex Vesker <valex@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
- Loading branch information
1 parent
d4f5114
commit 1cf51a6
Showing
3 changed files
with
73 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters