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][202012br] Fix high CPU utilization caused by chassis.get_change_event() #8900

Open
wants to merge 2 commits into
base: 202012
Choose a base branch
from

Commits on Oct 5, 2021

  1. Fix get_change_event behavior

    * correct the wait and timeout mechanism for better CPU usage.
    * Models: AS7726-32X, AS5835-54X
    
    Signed-off-by: Sean Wu <sean_wu@edge-core.com>
    seanwu-ec committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    f07748b View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Fix is_host() API might make OS stuck

    * The original design will use 'docker' to check operating environment.
      But that command might get stuck occasionally when it is called in the
      context of 'determine-reboot-cause.service'. It is suspetced the
      reason why it gets stucked is related to the service status of
      'containerd'.
    * Change to use 'which systemctl' to check operation environment.
      When systemctl exists, returns 0. (In Host os env)
      When it does not exist, returns 1. (In docker os env)
    
    Signed-off-by: Sean Wu <sean_wu@edge-core.com>
    seanwu-ec committed Oct 6, 2021
    Configuration menu
    Copy the full SHA
    b000cc3 View commit details
    Browse the repository at this point in the history