Skip to content

Release v0.1.0: pinned deps, changelog, SQ default fix, fuzz/stress tests - #25

Merged
y001j merged 4 commits into
masterfrom
release/v0.1.0
Nov 22, 2026
Merged

y001j merged 4 commits into
masterfrom
release/v0.1.0

Conversation

@y001j

@y001j y001j commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner
  • Depend on github.com/y001j/iouring-go v0.1.0 (new tag on the commit already in use, fd433968920b) instead of a pseudo-version; golang.org/x/sys v0.12.0 → v0.30.0 (latest supporting Go 1.21).
  • Fix: default SQ size 512 instead of 4096. io_uring rings count against RLIMIT_MEMLOCK per user; at 4096 each ring locked ~550KB, so the common 8MB limit allowed only 15 rings and Listen with 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 -sq flag.
  • FuzzEcho (3 server configs, fuzzed data and chunking, data must echo unchanged) and TestStressChurn (32 workers: echo / RST / half-close / write-without-read; then checks connections, OnOpen==OnClose, receive-buffer accounting and fds). 5 minutes of fuzzing and the stress test found nothing beyond the SQ issue.
  • CHANGELOG.md for v0.0.3-alpha → v0.1.0.
  • Coverage badge back in README / README_zh; codecov.yml ignores example/.
  • Roadmap items 6, 20, 21 done.

Tested in the Lima VM (Linux 6.17): go test -race ./..., vet, staticcheck, bench vet.

After merging, v0.1.0 will be tagged on master with a GitHub release.

🤖 Generated with Claude Code

- 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

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.17%. Comparing base (e1fbcf9) to head (50cd14a).

Files with missing lines Patch % Lines
uringnet.go 0.00% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

y001j and others added 3 commits November 22, 2026 20:49
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>
@y001j y001j changed the title Prepare v0.1.0 Release v0.1.0: pinned deps, changelog, SQ default fix, fuzz/stress tests Nov 22, 2026
@y001j
y001j merged commit 70997cf into master Nov 22, 2026
5 of 6 checks passed
@y001j
y001j deleted the release/v0.1.0 branch November 22, 2026 11:55
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.

1 participant