-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Describe the bug
The message struct contains set pointer. And set pointer contains pointers to records. A single record contains pointers to multiple information elements.
Using pointers in these different levels of methods puts pressure on GC. We need to revisit the decision of using interface to support both template and data entities. This leads to the use of a pointer. Instead, move to the direct structs.
In addition for the decoded messages, allocate contiguous memory and fill the required data in it.
To Reproduce
Memory consumption with antrea and ipfix performance tests. Fragmentation because of GC stress.
Expected behavior
We should cut down the difference between sys and heap usage
Additional context
Try with a PoC and improve upon it.