Skip to content

Performance impact because of decoded message struct #266

@srikartati

Description

@srikartati

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions