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

[device/accton] As7816-64x, fix memory leakage on accton fan monitor. #6168

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

roylee123
Copy link
Collaborator

@roylee123 roylee123 commented Dec 9, 2020

Signed-off-by: roy_lee roy_lee@edge-core.com

- Why I did it
It's been reported that accton fan monitor process keeps consuming memory after few days.
The amount of memory occupied increases in linear and never leased.

- How I did it
Just move declaration of thermal and fan object outside the loop.

- How to verify it
Just put in on for more than 5 days, check if the memory of accton fan montor increases.

  • 201811
  • 201911
  • 202006

- Description for the changelog
Just move declaration of thermal and fan object outside the loop.

Signed-off-by: roy_lee <roy_lee@edge-core.com>
@lguohan
Copy link
Collaborator

lguohan commented Dec 18, 2020

retest vsimage please

@lguohan lguohan merged commit c9d3e25 into sonic-net:master Jan 15, 2021
lguohan pushed a commit that referenced this pull request Jan 15, 2021
#6168)

It's been reported that accton fan monitor process keeps consuming memory after few days.
The amount of memory occupied increases in linear and never leased.

Signed-off-by: roy_lee <roy_lee@edge-core.com>
abdosi pushed a commit that referenced this pull request Feb 19, 2021
#6168)

It's been reported that accton fan monitor process keeps consuming memory after few days.
The amount of memory occupied increases in linear and never leased.

Signed-off-by: roy_lee <roy_lee@edge-core.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants