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

Consider ovsdb relay model to support memory trimming #311

Open
gujun4990 opened this issue Nov 7, 2023 · 0 comments
Open

Consider ovsdb relay model to support memory trimming #311

gujun4990 opened this issue Nov 7, 2023 · 0 comments

Comments

@gujun4990
Copy link

gujun4990 commented Nov 7, 2023

Environment

ovs version: branch-2.16.2

Description

nb and nb-relay run in our environment, we found that they occupy amount of memory as below.
1

So we enable memory trimming to return unused memory to OS using below commands:

ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/memory-trim-on-compaction on
ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/compact

After that we can see that memory is down a lot as below.
2

But after a flew days, nb occupy amount of memory again as below.
3

After analyzing ovs code, we found that memory trimming will be executed when running ovsdb snapshot operation. Because relay model wouldn't run snapshot operation, so nb-relay wouldn't execute memory trimming even that it is enabled except that run ovsdb-server/compact command manually.
So whether we also need to consider ovsdb relay model to support memory trimming?

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

No branches or pull requests

1 participant