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

after apply_view, use malloc_trim to release memory to system #1400

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inspurSDN
Copy link

why I did:
after warm-reboot with all vlan members, syncd use memory up to 1.8g,
and can not reduce to its normal state.
what I did:
this come from the glibc behavior, in the main heap, it almost not release
memory to system, in apply view, huge memory used for compare logic, and
do not use it again. so I add malloc_trim to release it.

why I did:
    after warm-reboot with all vlan members, syncd use memory up to 1.8g,
    and can not reduce to its normal state.
what I did:
    this come from the glibc behavior, in the main heap, it almost not release
    memory to system, in apply view, huge memory used for compare logic, and
    do not use it again. so I add malloc_trim to release it.
@kcudnik
Copy link
Collaborator

kcudnik commented Jul 24, 2024

How many clan members are in your case ? How did you counted that memory ?

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.

2 participants