public inbox for [email protected]
 help / color / mirror / Atom feed
* Emulating epoll
@ 2021-04-20 16:37 Jesse Hughes
  2021-04-20 16:59 ` Pavel Begunkov
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Hughes @ 2021-04-20 16:37 UTC (permalink / raw)
  To: [email protected]; +Cc: John

Hello,

I want to start by saying thank-you for working on io_uring.  My experience using it thus far has been great.

I'm working on an open-source database product (KeyDB, a multi-threaded redis fork) and we're considering rewriting our IO to use io_uring.  Our current implementation uses epoll, and processes IO on (mainly) sockets as they become ready.

If I'm understanding the literature correctly, to emulate epoll, we should be able to set up a uring, put in a read sqe for each incoming socket connection, then (using liburing) call io_uring_wait_sqe​.  Correct?  Is there a better way of doing that?

Our end-goal is not to emulate epoll, but that seems like the quickest way of getting something working that we can do further experiments with.

For reference, if anyone's interested, our source repo is at : https://github.com/EQ-Alpha/KeyDB

Cheers,
Jesse

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-23 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20 16:37 Emulating epoll Jesse Hughes
2021-04-20 16:59 ` Pavel Begunkov
2021-04-20 17:48   ` Jesse Hughes
2021-04-23 14:07     ` Pavel Begunkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox