Skip to content

io-uring needs kernel version >= 5.10, not 5.11#306

Closed
nojb wants to merge 1 commit intoocaml-multicore:mainfrom
nojb:io-uring-version-test
Closed

io-uring needs kernel version >= 5.10, not 5.11#306
nojb wants to merge 1 commit intoocaml-multicore:mainfrom
nojb:io-uring-version-test

Conversation

@nojb
Copy link
Copy Markdown
Contributor

@nojb nojb commented Sep 4, 2022

Fixes #304

@talex5
Copy link
Copy Markdown
Collaborator

talex5 commented Sep 7, 2022

Linux 5.11 is needed for unlink (see #289).

If Windows is still on 5.10, we could bring the old fallback code back, and use the probing support (added in uring 0.4) to decide whether to use it.

@nojb
Copy link
Copy Markdown
Contributor Author

nojb commented Sep 7, 2022

Linux 5.11 is needed for unlink (see #289).

Thanks for the pointer.

If Windows is still on 5.10, we could bring the old fallback code back, and use the probing support (added in uring 0.4) to decide whether to use it.

Yes, WSL is still on 5.10, but 5.15 should be released soon-ish (it is currently on "prerelease"), so I'm not sure it is worth the trouble to add a fallback.

But I would amend the error message for clarity:

Logs.info (fun f -> f "Selecting luv backend (io-uring needs Linux >= 5.10)");

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.

eio_main selects luv by default on WSL

2 participants