Files
Ryan HuberandClaude Opus 5.5 21a7f1b711 overlay/darwin: read the utun with recvmsg_x
tunQueue.Read now takes up to 64 queued packets with one recvmsg_x through
internal/msgx, each into its own 64KiB slot of a buffer allocated once per
queue, and falls back to the readv drain for good when recvmsg_x is refused
or returns a batch intact msghdr_x entries can't produce, or for one Read on
a transient error. Ported from the pipeline bench build's tunRecvX, minus its
env toggle and stats.

With 64 pending packets on the utun this is the remaining send gain: on an
M2 mini, one stream, pipeline + 64 pending reads 4.9 Gbps with recvmsg_x and
2.6 with the readv loop, the same as this branch before this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 13:27:27 +00:00
..
2026-09-14 09:25:35 -04:00
2026-04-27 09:41:47 -05:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00