Skip to content

[device/accton][as7816-64x] Fix memory leakage on accton fan monitor#6529

Closed
roylee123 wants to merge 1 commit intosonic-net:masterfrom
roylee123:as7816_fanmon_memory_raise
Closed

[device/accton][as7816-64x] Fix memory leakage on accton fan monitor#6529
roylee123 wants to merge 1 commit intosonic-net:masterfrom
roylee123:as7816_fanmon_memory_raise

Conversation

@roylee123
Copy link
Collaborator

@roylee123 roylee123 commented Jan 22, 2021

This is duplicated from #6168, for proposing it to be merged into branch 201911 and 202006.

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.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- 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>
@jleveque
Copy link
Contributor

@roylee123: These changes were already merged in #6168, correct? You just want that PR cherry-picked to 201911 and 202006? If so, we can add the appropriate labels to the other PR.

@roylee123
Copy link
Collaborator Author

Yes, please.
I will close this PR later.

@jleveque
Copy link
Contributor

@roylee123: I have added the labels to #6168, and I am closing this PR, as it is not applicable. Feel free to add comments to the original PR to continue any discussion.

@jleveque jleveque closed this Jan 22, 2021
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