Skip to content

Windowed ACK: 88 KB/s write (96% line efficiency)#36

Merged
widgetii merged 1 commit intomasterfrom
feature/windowed-ack
Apr 6, 2026
Merged

Windowed ACK: 88 KB/s write (96% line efficiency)#36
widgetii merged 1 commit intomasterfrom
feature/windowed-ack

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented Apr 6, 2026

Summary

Windowed ACK write: send W blocks (16 × 16KB = 256KB) back-to-back without waiting for ACKs, then read all W ACKs. Pipelines round-trips to approach line speed. Falls back to single-block retry on failure.

Benchmark (hi3516ev300, 921600 baud, 16MB, CRC verified)

Mode Speed Time Line Efficiency
Per-packet ACK 30 KB/s 9.0 min 33%
Streaming (#35) 77 KB/s 3.5 min 84%
Windowed (W=16) 88 KB/s 3.1 min 96%
Theoretical max 90 KB/s 3.0 min 100%

Test plan

  • All CI checks pass
  • 16MB CRC32 verified on real hardware
  • CI on PR

🤖 Generated with Claude Code

Send W blocks (16 × 16KB = 256KB) back-to-back without waiting for
ACKs, then read all W ACKs. Pipelines round-trips, approaching line
speed. Falls back to single-block retry on failure.

Benchmark (hi3516ev300, 921600 baud, 16MB):
  Per-packet ACK:  30 KB/s, 9.0 min (33%)
  Streaming:       77 KB/s, 3.5 min (84%)
  Windowed (W=16): 88 KB/s, 3.1 min (96%)
  Theoretical max: 90 KB/s, 3.0 min

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii widgetii merged commit eab126c into master Apr 6, 2026
13 checks passed
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