Skip to content

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

Merged
lguohan merged 1 commit intosonic-net:masterfrom
roylee123:as7816_fanmon_memory_raise
Jan 15, 2021
Merged

[device/accton] As7816-64x, fix memory leakage on accton fan monitor.#6168
lguohan merged 1 commit intosonic-net:masterfrom
roylee123:as7816_fanmon_memory_raise

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>
@roylee123 roylee123 force-pushed the as7816_fanmon_memory_raise branch from 5655817 to c0fd04f Compare December 10, 2020 02:26
@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