Giter Site home page Giter Site logo

tokio-epoll-uring's Introduction

tokio-epoll-uring enables high-performance use of Linux's io_uring from vanilla tokio.

Warning

This project is currently not intended for use outside of Neon. The plan is to prove the core architectural idea by deploying it to production in Neon's Pageserver. We will share the results with the tokio community to push forward io_uring-enabled tokio.

Documentation

Use cargo doc --no-deps --open.

The Rust docs include sections on the motivation behind this project, the design of the crate, and benchmarks. If you prefer to read them in Markdown in your browser, check out the files in tokio-epoll-uring/src/doc.

Examples

Check out ./tokio-epoll-uring/examples.

Bug Reports, Roadmap, Contributing

As noted at the top of this readme file, this project is not yet intended for use outside of Neon.

  • Genuine bug reports are welcome.
  • We will not be able to accept feature requests at this time.
  • We are unlikely to accept big refactoring PRs.
  • We are likely to accept PRs that add support for new io_uring opcodes. Duplicating some code per opcdoe added is preferred over doing a big DRY refactoring.
  • Feedback on the architecture is best provided by opening an issue.

Benchmarking

See ./BENCHMARKING.md.

tokio-epoll-uring's People

Contributors

areyou1or0 avatar arpad-m avatar danieltprice avatar dependabot[bot] avatar koivunej avatar problame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tokio-epoll-uring's Issues

Figure out if we can get rid of `Slot::Undefined`

          ```suggestion
                Slot::Undefined => panic!("slot is in undefined state"),

Though, what good are undefined states for us in our own program.. I think these are the most cumbersome parts to review with these.

_Originally posted by @koivunej in https://github.com/neondatabase/tokio-epoll-uring/pull/11#discussion_r1294287630_
            

false clippy beta `warning: this `MutexGuard` is held across an `await` point`

          The CI failure is due to a new beta clippy lint:
warning: this `MutexGuard` is held across an `await` point
   --> tokio-epoll-uring/src/system/completion.rs:204:33
    |
204 | ...                   let poller_guard = poller.lock().unwrap();
    |                           ^^^^^^^^^^^^
    |
    = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
note: these are all the `await` points this lock is held through
   --> tokio-epoll-uring/src/system/completion.rs:215:42
    |
215 | ...                   .await
    |                        ^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
    = note: `#[warn(clippy::await_holding_lock)]` on by default

warning: `tokio-epoll-uring` (lib) generated 1 warning
    Checking benchmark v0.1.0 (/home/admin/tokio-epoll-uring/benchmark)
    Finished dev [unoptimized + debuginfo] target(s) in 22.39s

It's a false positive, the guard is dropped before the .await point.
The fix would be to rearrange control flow so that the guard is in a scope that is closed before the .await point.

Will turn this into a follow-up issue.

Originally posted by @problame in #18 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.