-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The TBL24 present in a FIB head takes 64MB. A Lua policy may have 4 FIBs: IPv4 source, IPv4 destination, IPv6 source, IPv6 destination. Therefore, an instance of a Lua policy may take more than 4 * 64MB = 256MB. A typical Grantor server has 2 instances of the GT Block. Therefore, The instances of a Lua policy may take more than 2 * 256MB = 512MB. During reloads or recreation of FIBs, the number of FIBs may double. Which requires more than 1GB of memory and reaches LuaJIT's limit of 1GB per process. This patch moves FIB heads to huge pages to avoid the problem decribed above. Moreover, having TBL24s in huge pages is also a performance improvement since it puts less load on the virtual memory subsystem and it is NUMA aware.
- Loading branch information
1 parent
c05cfc2
commit ee87c78
Showing
1 changed file
with
72 additions
and
30 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