-
Notifications
You must be signed in to change notification settings - Fork 275
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
Return allocated memory with malloc_trim when queue is empty #960
base: master
Are you sure you want to change the base?
Return allocated memory with malloc_trim when queue is empty #960
Conversation
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <[email protected]>
5b30464
to
8091aca
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update description with stats of this api call in a stable system vs continuous notification scenario?
common/notificationconsumer.cpp
Outdated
* | ||
* Force the memory to be released by destroying existing queue and creating a new one. | ||
*/ | ||
SWSS_LOG_DEBUG("%s queue is empty, calling malloc_trim()", m_channel.c_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to INFO
level?
Signed-off-by: Lawrence Lee <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
When device is encountering rapid MAC moves, malloc_trim gets called anywhere from 50-300 times per second depending on MAC move rate.
When device is stable, malloc_trim gets called 5-10 times per hour in short bursts.