Repository navigation
Release v0.1.0: pinned deps, changelog, SQ default fix, fuzz/stress tests - #25
Merged
Merged
Conversation
- github.com/y001j/iouring-go v0.1.0 (tagged at the commit used so far) instead of a pseudo-version; golang.org/x/sys v0.12.0 -> v0.30.0, the latest release that supports Go 1.21. - CHANGELOG.md covering v0.0.3-alpha -> v0.1.0. - Coverage badge back in both READMEs now that CI uploads coverage; codecov.yml leaves the examples out. - Roadmap: items 20 and 21 done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #25 +/- ##
==========================================
+ Coverage 54.72% 60.17% +5.44%
==========================================
Files 20 18 -2
Lines 1142 1052 -90
==========================================
+ Hits 625 633 +8
+ Misses 517 419 -98 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
FuzzEcho runs three server configurations (scarce 512-byte buffers that keep running out, incremental buffers, zero-copy) with a handler that writes each chunk back in up to three slices; fuzzed data is sent in fuzzed chunk sizes over up to 8 connections and must come back unchanged. Run it with -fuzzminimizetime 5s, and with ulimit -l unlimited or -parallel 2: io_uring locked memory is per user and the workers share it. TestStressChurn (2s by default, URINGNET_STRESS=60s for longer) has 32 workers connect over and over with normal echo, RST, half-close and write-without-read sessions, then checks that nothing leaked: no open connections, OnOpen == OnClose, no held/pinned/starved receive buffers, and no extra fds after shutdown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
io_uring rings count against RLIMIT_MEMLOCK per user. With Listen's default SQ of 4096 (CQ 16384) each ring locked about 550KB, so the common 8MB limit allowed only 15 rings, and Listen with the default WithRings(NumCPU) failed with ENOMEM on 16+ core machines. Found while fuzzing with 4 worker processes. SQ size makes no measurable difference to throughput (4096/1024/512/256 within noise, including 512 connections pipelined), so the default is now 512, about 70KB per ring: 113 rings fit in 8MB. The ENOMEM hint names WithRings/WithSQSize and ulimit -l / LimitMEMLOCK, and the README documents the accounting. The bench server gets a -sq flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
github.com/y001j/iouring-gov0.1.0 (new tag on the commit already in use, fd433968920b) instead of a pseudo-version;golang.org/x/sysv0.12.0 → v0.30.0 (latest supporting Go 1.21).RLIMIT_MEMLOCKper user; at 4096 each ring locked ~550KB, so the common 8MB limit allowed only 15 rings andListenwith the default one-ring-per-CPU failed with ENOMEM on 16+ core machines. SQ size has no measurable throughput effect (4096/1024/512/256 within noise, incl. 512 connections pipelined); at 512 a ring locks ~70KB (113 rings fit in 8MB). Clearer ENOMEM hint, README note, bench-sqflag.CHANGELOG.mdfor v0.0.3-alpha → v0.1.0.codecov.ymlignoresexample/.Tested in the Lima VM (Linux 6.17):
go test -race ./..., vet, staticcheck, bench vet.After merging,
v0.1.0will be tagged on master with a GitHub release.🤖 Generated with Claude Code