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

Try blocking reads first to avoid thundering herd problem #31

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

the8472
Copy link
Member

@the8472 the8472 commented Apr 18, 2021

Linux 5.6 and up optimize the wakeups of pipe readers
when pipes have multiple readers and those readers are blocking.
Always polling defeats that optimization.

torvalds/linux@0ddad21

fixes #30

Linux 5.6 and up optimize the wakeups of pipe readers
when pipes have multiple readers and those readers are blocking.
Always polling defeats that optimization.

torvalds/linux@0ddad21
@alexcrichton alexcrichton merged commit eaa0458 into rust-lang:master Apr 19, 2021
@alexcrichton
Copy link
Member

Thanks!

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.

polling pipes instead of blocking reads is inefficient on linux
2 participants