Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve vcd_nsxt_edgegateway memory performance #1047

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Apr 17, 2023

Main fix and description is in go-vcloud-director SDK pull request - vmware/go-vcloud-director#567

Test TestAccVcdNsxtEdgeGatewayAutoAllocationUsedAndUnusedIps patched to allocate a /16 size subnet with 65533 IPs which uses only 18MB of memory for 2 read operations.

With the TEST_VCD_HIGH_MEM environment variable one can optionally enable allocation /8 IPv4 subnet with 16777213. That might take roughly 2GB per read operation.

This is a sample memory usage with 65533 IPs in /16

image

…sses' memory footprint

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius marked this pull request as ready for review April 17, 2023 11:57
@Didainius Didainius removed the request for review from lvirbalas April 17, 2023 11:57
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius merged commit f866b00 into vmware:main Apr 18, 2023
@Didainius Didainius deleted the improve-edge-memory branch April 18, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants