Set higher default value for Zenoh wait_before_drop parameter - #841
Closed
caguero wants to merge 5 commits into
Closed
Set higher default value for Zenoh wait_before_drop parameter#841caguero wants to merge 5 commits into
caguero wants to merge 5 commits into
Conversation
Signed-off-by: Carlos Agüero <caguero@osrfoundation.org>
Contributor
|
Nice! Could you include instructions for the benchmarking you did to discover this so that I or others can reproduce it? |
Collaborator
Author
I've updated the description with the instructions. |
j-rivero
reviewed
Apr 17, 2026
| // the default 1 ms wait_before_drop causes 50-90% loss for | ||
| // messages in the 125 KB–4 MB range, while 50 ms eliminates | ||
| // loss entirely without measurable throughput impact. | ||
| // These can be overridden via ZENOH_CONFIG or |
Contributor
There was a problem hiding this comment.
These can be overridden via ZENOH_CONFIG
Is this correct? the ZENOH configurations seems to be loaded before these lines.
6 tasks
Collaborator
Author
|
Closing: we'll rely on Zenoh's default congestion-control parameters instead of overriding wait_before_drop. The SHM work continues in #842, now retargeted to main. |
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.
🦟 Bug fix
This patch increases the Zenoh
wait_before_droptimeout from 1 ms (Zenoh default) to50 ms, and
max_wait_before_drop_fragmentsfrom 50 ms to 250 ms. Thiseliminates message loss for large messages in inter-process pub/sub without
measurable throughput impact.
Instructions to reproduce the benchmark
Save this diff into a file:
And then, apply the path and run the benchmark:
Summary
Checklist
codecheckpassed (See contributing)Generated-by: Remove this if GenAI was not used.
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.Backports: If this is a backport, please use Rebase and Merge instead.