Skip to content

finagle a STREAMS rx buffer size for DLPI handles - #1204

Open
rcgoodfellow wants to merge 3 commits into
masterfrom
ry/STREAMS-rx-buffer-size
Open

finagle a STREAMS rx buffer size for DLPI handles#1204
rcgoodfellow wants to merge 3 commits into
masterfrom
ry/STREAMS-rx-buffer-size

Conversation

@rcgoodfellow

@rcgoodfellow rcgoodfellow commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

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

@sion42x

sion42x commented Aug 28, 2026

Copy link
Copy Markdown

Ran tests and a/b checks on 64KB vs 4MB. Softnpu hits "fast enough" that way, with uploads and recovery finish beating race conditions and completing successfully. A combination of #1200, #1201 (now only for hygiene), and #1204 would be required for voxel to use propolis main. Hoping we can get all three in soon!


let mut offset = 1;
for de in &dir[msg.offset as usize..] {
for (offset, de) in (1..).zip(dir[msg.offset as usize..].iter()) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thsi is addressing a recent clippy complaint.

@rcgoodfellow
rcgoodfellow marked this pull request as ready for review August 28, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants