finagle a STREAMS rx buffer size for DLPI handles - #1204
Open
rcgoodfellow wants to merge 3 commits into
Open
Conversation
|
Ran tests and a/b checks on 64KB vs 4MB. Softnpu hits "fast enough" that way, with uploads and |
This was referenced Aug 28, 2026
rcgoodfellow
commented
Aug 28, 2026
|
|
||
| let mut offset = 1; | ||
| for de in &dir[msg.offset as usize..] { | ||
| for (offset, de) in (1..).zip(dir[msg.offset as usize..].iter()) { |
Contributor
Author
There was a problem hiding this comment.
Thsi is addressing a recent clippy complaint.
rcgoodfellow
marked this pull request as ready for review
August 28, 2026 18:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
STREAMS uses a high water mark as a back pressure mechanism. When we hit the high water mark, messages are dropped until we drain to the low water mark. This essentially makes the high water mark a receive buffer size.
For TCP on the STREAMS path (i.e. TPI consumers), it appears that the high water mark is set to SO_RCVBUF which is 128000 bytes. However, for DLPI the high water mark is not set and it defaults to 5120. This meaans we hit the mark at the first jumbo frame and thrash from there.
It seems the only way to influence this outside the kernel is pushing a passthrough bufmod STREAMS module. So that's what we do here for the time being.
It looks like the CI failure is addressed by #1093