Add support for epoll min_wait
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest7 patches 0 repliesNew
- v30 of 5 patches 23 repliesSuperseded
- v2 RFC5 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 4 patches | 0 replies | Superseded |
Changes in v4 from the cover letter
- Split the ctl addition into separate patch
- Gate setup of min_wait on !ewq.timed_out
- Add comment on calling ctl with wait == 0 is a no-op
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | eventpoll: cleanup branches around sleeping for eventsfs/ | +6 | 0 replies | |
| 2/7 | eventpoll: don't pass in 'timed_out' to ep_busy_loop()fs/ | +4 | 0 replies | |
| 3/7 | eventpoll: split out wait handlingfs/ | +55 | 0 replies | |
| 4/7 | eventpoll: move expires to epoll_wqfs/ | +3 | 0 replies | |
| 5/7 | eventpoll: move file checking earlier for epoll_ctl()fs/ | +16 | 0 replies | |
| 6/7 | eventpoll: add support for min-waitfs/ | +71 | 0 replies | |
| 7/7 | eventpoll: add method for configuring minimum wait on epoll contextfs/ include/ include/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCHSET v4 0/7] Add support for epoll min_wait
Hi,
tldr - we saw a 6-7% CPU reduction with this patch. See patch 6 for full numbers.
This adds support for EPOLL_CTL_MIN_WAIT, which allows setting a minimum time that epoll_wait() should wait for events on a given epoll context. Some justification and numbers are in patch 6, patches 1-5 are really just prep patches or cleanups, and patch 7 adds the API to set min_wait.
I've decided against adding a syscall for this due to the following reasons:
1) We, Meta, don't need the syscall variant.
2) It's unclear how best to do a clean syscall interface for this. We're already out of arguments with the pwait/pwait2 variants.
With the splitting of the API into a separate patch, anyone who wishes to have/use a syscall interface would be tasked with doing that themselves.
No real changes in this release, just minor tweaks. Would appreciate some review on this so we can get it moving forward. I obviously can't start real deployments at Meta before I have the API upstream, or at least queued for upstream. So we're currently stuck in limbo with this.
Also available here:
https://git.kernel.dk/cgit/linux-block/log/?h=epoll-min_ts
Since v3:
- Split the ctl addition into separate patch
- Gate setup of min_wait on !ewq.timed_out
- Add comment on calling ctl with wait == 0 is a no-op
Signature · 1 line
Jens Axboe