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

tech debt: async version of pread #3507

Open
sehz opened this issue Aug 30, 2023 · 5 comments
Open

tech debt: async version of pread #3507

sehz opened this issue Aug 30, 2023 · 5 comments

Comments

@sehz
Copy link
Contributor

sehz commented Aug 30, 2023

We use low-level pread to perform block read, a synchronous operation. We need to build an async version. Here is scope:

  1. Centralize pread operation. This should be a fallback if async I/O is not available. We have duplicate usage. Preferably use https://github.com/bytecodealliance/rustix if possible instead of nix or libc.
  2. IO-Uring backend for Linux.
  3. Async I/O for Darwin (Mac). I believe there is I/O file API on BSD. This is a low priority. Can move to separate issue if first two objects are accomplished.

The API can be moved to https://github.com/infinyon/future-aio

@sehz
Copy link
Contributor Author

sehz commented Sep 1, 2023

related to this: #2215

@matheus-consoli
Copy link
Contributor

Hi, I want to take a look into this 🙂

@EstebanBorai
Copy link
Contributor

Hi, I want to take a look into this 🙂

Of course! Feel free to ask any questions here!

@EstebanBorai
Copy link
Contributor

@matheus-consoli not sure if you are in our Discord already, but just un case: https://discord.gg/3nBFxRZy.

There you can have access to a quicker prompt!

@sehz
Copy link
Contributor Author

sehz commented Sep 5, 2023

Another usage of pread #3519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants