Stub transport: measure how much of each token the link costs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- zig
- Domain
- networking, performance
Research direction
Read zig/src/families/dsv41/tcp_proxy.zig for the proxy exchange and done flags, then inspect zig/src/families/dsv41/tcp_coll.zig around line 525 to see how TF_COLL_KIND selects a transport. Use tools/dsv41-hip/COLLECTIVES-DESIGN.md to understand the current exchange, then run serve-rank0.sh bench for code and prose at 400 tokens, with drafts off and on, comparing stub and TCP proxy across three runs each. Done means the patch is off by default and a short report gives time per token for all four cases.
Written by the indexing model from the issue text.
Description
A small, self-contained piece of work, and a good first contribution.
What: a stub collective that marks every exchange done without sending anything (TF_COLL_KIND=stub, or one flag in tcp_proxy.zig). The output is wrong, but the timing shows what a token costs with the link taken out.
Then measure: serve-rank0.sh bench (code and prose, 400 tokens, 3 runs each) with drafts off and drafts on, stub against the TCP proxy. Four numbers per case.
Done when: a short report with the time per token for each of the four cases, plus the patch, off by default.
Why: it tells us how much a faster link (RDMA, or anything else) could ever buy, before anyone writes verbs code. It's step SFR-0 of outsider's RDMA design (#2).
Where to look:
zig/src/families/dsv41/tcp_proxy.zig: the proxy thread, its exchange and thedoneflagszig/src/families/dsv41/tcp_coll.zig(around line 525): whereTF_COLL_KINDpicks the transporttools/dsv41-hip/COLLECTIVES-DESIGN.md: how the two boxes exchange data today
Questions are welcome here or in #contributors on the Discord.
- Dominant language
- Zig
- Stars
- 76
- Forks
- 9
- Avg merge
- 21h 59m
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shoestring-dev/StrixFold
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Shoestring-dev/StrixFold#70 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
Shoestring-dev/StrixFold#57 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Shoestring-dev/StrixFold#39 · 8 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Shoestring-dev/StrixFold#28 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 54/100
Shoestring-dev/StrixFold#7 · 3 comments ·
Maintainers usually reply within 1 day
All issues in Shoestring-dev/StrixFold
Similar issues
-
[BUG] Regression in 9.2.0: `socket.c: error: storage size of 'info' isn't known`Possibly taken @barracuda156 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
valkey-io/valkey#5551 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
manuscript-lang/manuscript#6389 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 62/100
zephyrproject-rtos/zephyr#126735 · 1 comment ·
Maintainers usually reply within 2 days
-
upnp > 18 fixesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BZFlag-Dev/bzflag#407 ·
-
ipcache: deleting a CIDR skips the BPF delete when an endpoint IP equals the CIDR's network addressOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cilium/cilium#50199 · 2 comments ·
Maintainers usually reply within 1 day