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

Fix busy polling in startup phase #1524

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

Commits on Sep 25, 2023

  1. Fix busy polling in startup phase

    During the startup phase, the socket file descriptors (socket-fds) of
    the streams are added to the select fd-sets. However, these file
    descriptors are not read or written, causing the select operation to be
    non-blocking and leading to busy polling.
    
    To address this issue, a separate fd-set is introduced specifically for
    the startup phase, which includes only the control socket.
    
    In most scenarios, this results in a short period of increased CPU usage
    during startup. However, in more uncommon situations, such as
    simulations that utilize target code, this creates unnecessary load on
    the system.
    
    Signed-off-by: Benjamin Beichler <[email protected]>
    BenjaminBeichler committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    987181f View commit details
    Browse the repository at this point in the history