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 io_uring support detection #1445

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix io_uring support detection #1445

merged 1 commit into from
Aug 13, 2024

Conversation

ibc
Copy link
Member

@ibc ibc commented Aug 12, 2024

Details

  • Having Kernel >= 6 doesn't guarantee that io_uring is enabled. Some systems disable it at kernel layer.
  • This PR checks if io_uring initialization works in launch time, otherwise io_uring is disabled.

TODO

  • This is another story, but we should rename WorkerSettings.disableLiburing to WorkerSettings.disableIoUring. That's what we are disabling and not the io_uring C wrapper library called liburing.

- Fixes #1435

### Details

- Having Kernel >= 6 doesn't guarantee that `io_uring` is enabled. Some systems disable it at kernel layer.
- This PR checks if `io_uring` initialization works in launch time, otherwise `io_uring` is disabled.

### TODO

- This is another story, but we should rename `WorkerSettings.disableLiburing` to `WorkerSettings.disableIoUring`. That's what we are disabling and not the `io_uring` C wrapper library called `liburing`.
@ibc ibc merged commit 741d99c into v3 Aug 13, 2024
52 checks passed
@ibc ibc deleted the fix-io-uring-detection branch August 13, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Docker and io_uring don't work together - add prebuilt binary without liburing
3 participants