-
Notifications
You must be signed in to change notification settings - Fork 129
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
iouring sq poll and io poll #683
Conversation
8dfb1df
to
0fff281
Compare
io/iouring-wrapper.cpp
Outdated
int ret = io_uring_submit(m_ring); | ||
if (ret < 0) | ||
LOG_ERROR_RETURN(-ret, -1, "iouring: fail to submit when adding interest, ", ERRNO(-ret)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used to only submit IO in the reap process, in order to reduce the number of syscalls.
Will it cause performance decline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have it in add_interest() and rm_interest(). It might be missing here?
photon.h
Outdated
#endif | ||
|
||
#undef SHIFT | ||
|
||
struct PhotonOptions { | ||
int libaio_queue_depth = 32; | ||
uint32_t iouring_sq_thread_cpu; | ||
uint32_t iouring_sq_thread_idle = 1000; // by default polls for 1s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to iouring_sq_thread_idle_ms
?
0fff281
to
3026e27
Compare
3026e27
to
f4fcf35
Compare
make_named_value("setup_sq_aff", args.setup_sq_aff), | ||
make_named_value("sq_thread_cpu", args.sq_thread_cpu)); | ||
auto uring = NewObj<iouringEngine>() -> init(args); | ||
if (args.is_master) return uring; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uring's type is MasterEventEngine*
? Don't need to do conversion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for the 1st parent class
No description provided.