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

[Accton][PDDF] Fix high CPU utilization caused by chassis.get_change_event() #8905

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanwu-ec
Copy link
Contributor

@seanwu-ec seanwu-ec commented Oct 6, 2021

Same as #8900
but only for PDDF models: AS7326-56x, as7726-32x, as7816-64x, as9716-32x

Why I did it

Correct get_change_event() wait and timeout mechanism to avoid high CPU utilization.

How I did it

Make sure get_change_event() behaves as documentation said: can block the caller and handle timeout appropriately.

How to verify it

In pmon,

  1. Use top to measure CPU usage of xcvrd. Make a comparison to confirm the improvement in CPU usage.
  2. Code a script to keep polling get_change_event() and see if the returned data is exactly what we expect.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106: some of our customers demands it.

Description for the changelog

[Accton][PDDF] Fix xcvrd busy issue

A picture of a cute animal (not mandatory but encouraged)

Alt Text

* correct the wait and timeout mechanism for better CPU usage.
* Models: as7326-56x, as7726-32x, as7816-64x, as9716-32x

Signed-off-by: Sean Wu <sean_wu@edge-core.com>
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.

1 participant