Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactor Thread Management and CPU Load Calibration in SystemHelper #2792

Closed
marevol opened this issue Dec 29, 2023 · 0 comments
Closed

Refactor Thread Management and CPU Load Calibration in SystemHelper #2792

marevol opened this issue Dec 29, 2023 · 0 comments
Assignees
Milestone

Comments

@marevol
Copy link
Contributor

marevol commented Dec 29, 2023

This issue addresses the need for improved handling of high CPU load situations in our software.
The proposed changes include:

  1. Refactoring the Thread Waiting Mechanism in SystemHelper: Implementing a more robust way to put threads into a waiting state when the CPU load is high. This involves using a Set to keep track of waiting threads and adjusting the CPU load calibration logic accordingly.
  2. Modifying IndexUpdater to Wait for Threads: Updating the IndexUpdater to ensure it waits for all threads in the waiting state to resume before proceeding. This change is crucial to prevent the indexer from overwhelming the system when CPU load is high.

These changes aim to enhance the system's stability and efficiency under heavy CPU load, ensuring smoother operation and better resource management.

@marevol marevol added this to the 14.12.0 milestone Dec 29, 2023
@marevol marevol self-assigned this Dec 29, 2023
marevol added a commit that referenced this issue Dec 29, 2023
marevol added a commit that referenced this issue Jan 27, 2024
marevol added a commit that referenced this issue Jan 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant