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

Parameterize sleep period when polling async flush #498

Merged
merged 2 commits into from
Mar 11, 2022
Merged

Conversation

adammoody
Copy link
Contributor

@adammoody adammoody commented Mar 11, 2022

When waiting on an async flush to finish, SCR polls for some time to avoid busy spinning on the CPU, which may fight with the processes that are conducting the flush. This adds a new SCR_FLUSH_ASYNC_USLEEP parameter that allows the user to set the the sleep time. It also lowers the default value from 10 seconds to 1 millisecond.

@adammoody adammoody merged commit 7de9629 into develop Mar 11, 2022
@adammoody adammoody deleted the flushsleep branch March 11, 2022 20:12
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