GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — io_uring: do not release write memory that the kernel still owns by HwangRock · Pull Request #17238 · netty/netty io_uring: do not release write memory that the kernel still owns #17238New issueHave 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
Merged
normanmaurer
merged 34 commits into
netty:4.2
from
HwangRock:io-uring-shutdown-output-inflight-write
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
fd98f18
io_uring: do not release write memory that the kernel still owns
HwangRock 89a98ea
io_uring: remove redundant close race tests
HwangRock 4f83b50
io_uring: allocate write-operation ids from a free list
HwangRock 38ae434
io_uring: index write operations by slot instead of hashing them
HwangRock 2ead7c5
io_uring: skip the iovec collector test when the native library is un…
HwangRock 9e0e5a2
io_uring: guard the zero-copy test on native availability
HwangRock 6371985
io_uring: retain in-flight write memory at shutdown rather than at su…
HwangRock 1476a7b
io_uring: keep zero-copy write memory alive until its notification
HwangRock c6af0ce
io_uring: avoid pooled buffer reuse race in test
HwangRock 9dc8dd1
io_uring: track non-zero-copy stream writes in a single slot
HwangRock 18a530a
io_uring: fall back to a long user_data when the write-operation ids …
HwangRock a171b0d
io_uring: retain zero-copy write memory on errored completions too
HwangRock 51a9a82
io_uring: bring the added comments back in line with the package
HwangRock 4e165ce
io_uring: clear the dropped iovec references when the collector is reset
HwangRock 8c9c7a1
io_uring: keep an in-flight splice's file and pipe descriptors alive
HwangRock 7c8b1fc
io_uring: hold the write bookkeeping in one type
HwangRock 627eea2
io_uring: cover the pooled slots the way the overflow map is covered
HwangRock f287dad
io_uring: keep one copy of the write-lifecycle test helpers
HwangRock 1b16fda
io_uring: give the iovec reference collector the same scope as the Io…
HwangRock 1206b1e
io_uring: keep the write bookkeeping out of the hot methods' way
HwangRock 0c30e87
io_uring: bring the last step of the collector's write path under the…
HwangRock 2dd62d8
io_uring: release only the references a shutdown actually retained
HwangRock 2d56ff0
io_uring: drop the collector's references once the slot has copied them
HwangRock ab051ea
io_uring: lift the last duplicated helpers into the tracker test base
HwangRock a621ffc
io_uring: keep the moved unit tests off the Java 8 test run
HwangRock 33e8cc9
io_uring: reset the iovec collector from a finally instead of on entry
HwangRock 63f4bb4
io_uring: size the slot arrays with MathUtil
HwangRock 8fae036
io_uring: assert the write user_data narrowings before they happen
HwangRock 8589326
io_uring: assert the expected exception instead of swallowing it
HwangRock eae125d
Merge branch '4.2' into io-uring-shutdown-output-inflight-write
normanmaurer 5e56be2
io_uring: describe what the write bookkeeping actually does
HwangRock c47b0c1
io_uring: let the connect completion carry the full user_data
HwangRock 84d933c
io_uring: do not let one failed release strand the rest
HwangRock 8adae2b
Merge branch '4.2' into io-uring-shutdown-output-inflight-write
normanmaurer File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff view
io_uring: allocate write-operation ids from a free list
Motivation: `nextWriteOperationId()` walked the shared `nextOpsId()` sequence and re-probed whenever the value it landed on was still owned by a write awaiting its CQE. That is about one iteration in the common case, but the bound is 65535 and it runs on the event loop. Modification: Give write operations their own sequence and a free list. An id goes back on the list when its terminal CQE removes the operation, allocation pops from the list first, and the sequence is only asked for ids it has never handed out. Nothing has to be searched, so allocation is O(1) in the worst case, and the list grows with the number of writes in flight rather than with the id space. The datagram sendmsg path registers `MsgHdrMemoryArray` indices, which that array allocates and recycles itself. Those ids go through `retainUnpooledWriteOperation(...)` so they never enter the free list -- index 0 would otherwise be handed out as an operation id, and 0 means "no id". Result: Write-operation id allocation is constant time. Ids are also reused as soon as they are released, so the range in use stays proportional to the writes in flight.
Uh oh!
There was an error while loading. Please reload this page.
commit 4f83b50e273a8af4dd8b6a59b983d7cac0fd62f4
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
|
| You are visitor 01402894 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |