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

Slow and steady increase in memory usage for eventd #20279

Open
DavidZagury opened this issue Sep 17, 2024 · 3 comments
Open

Slow and steady increase in memory usage for eventd #20279

DavidZagury opened this issue Sep 17, 2024 · 3 comments
Assignees
Labels
Triaged this issue has been triaged

Comments

@DavidZagury
Copy link
Contributor

Description

Steps to reproduce the issue:

  1. Run test on a system with no call to config reload / reboot for a long period of time.

Describe the results you received:

The memory usage of the eventd is continuously rising
e.g.
Attached is a summary of the memory usage in one switch from for the eventd proccess from ~13mb on 2024-07-11 to 57mb two months later on 2024-09-16.

Average RAM consumption per process in GB (1).csv
eventd

Describe the results you expected:

Memory usage shouldn't continuously rise with time.

Output of show version:

Version running is 202311, based on hash 156b067

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@bingwang-ms
Copy link
Contributor

  1. Test keeps running for 2 months, without any reboot/config reload.
  2. The device is not completely idle. There are some tests running.
  3. It's not clear if there is any link flap or BGP flap. @DavidZagury Please confirm and add more details if possible.

@qiluo-msft Can you please help take a look and assign to the right owner?

@bingwang-ms bingwang-ms added the Triaged this issue has been triaged label Sep 25, 2024
@zbud-msft
Copy link
Contributor

Events are cached when there is no collector listening to xpub socket. Max cache size is 100MB

https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-eventd/src/eventd.cpp#L33C1-L33C50

@zbud-msft
Copy link
Contributor

zbud-msft commented Sep 25, 2024

If possible, can you verify that eventd size is reduced when events are collected: https://github.com/sonic-net/sonic-gnmi/tree/master?tab=readme-ov-file#streaming-events

@zbud-msft zbud-msft assigned zbud-msft and unassigned qiluo-msft Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants