Skip to content

refactor(proto): Raise limit of path responses kept around per PathData#622

Merged
matheus23 merged 1 commit into
mainfrom
matheus23/qnt-defaults
Apr 29, 2026
Merged

refactor(proto): Raise limit of path responses kept around per PathData#622
matheus23 merged 1 commit into
mainfrom
matheus23/qnt-defaults

Conversation

@matheus23
Copy link
Copy Markdown
Member

Description

  • Raises MAX_PATH_RESPONSES from 16 to 32.
    16 is not enough with users potentially having 25 interfaces or more configured. Now that we send off-path PATH_CHALLENGEs all from a single PathId, we need to be able to keep around 32 PATH_RESPONSEs queued for sending for potentially that many challenges.
    I've considered other values for this such as 64 or 128, but the worst-case memory use caused by malicious attackers is quite bad, so I've opted for the lowest reasonable value.
  • Raises MAX_QNT_ADDRS in the proptests from 12 to 32, to match values that will be set in iroh: feat(iroh)!: update QNT config defaults & update to latest noq main iroh#4213

Closes #613 (together with n0-computer/iroh#4213).

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.

@matheus23 matheus23 self-assigned this Apr 29, 2026
@matheus23 matheus23 requested a review from flub April 29, 2026 13:57
@github-actions
Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/noq/pr/622/docs/noq/

Last updated: 2026-04-29T13:59:55Z

@github-actions
Copy link
Copy Markdown

Performance Comparison Report

bcf17b6980ebc691cd8b45d5071fdc774398355f - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5787.0 Mbps 7960.0 Mbps -27.3% 98.2% / 99.3%
medium-concurrent 5448.6 Mbps 7756.6 Mbps -29.8% 96.5% / 98.2%
medium-single 3631.6 Mbps 4749.1 Mbps -23.5% 96.8% / 98.7%
small-concurrent 3915.9 Mbps 5337.1 Mbps -26.6% 97.1% / 99.6%
small-single 3581.7 Mbps 4914.0 Mbps -27.1% 96.3% / 98.7%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3172.1 Mbps 4024.8 Mbps -21.2%
lan 782.5 Mbps 810.3 Mbps -3.4%
lossy 69.8 Mbps 55.9 Mbps +25.0%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 25.8% slower on average

@n0bot n0bot Bot added this to iroh Apr 29, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Apr 29, 2026
@matheus23 matheus23 added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit a49f066 Apr 29, 2026
36 of 38 checks passed
@matheus23 matheus23 deleted the matheus23/qnt-defaults branch April 29, 2026 15:14
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Tweak concurrent use numbers

2 participants