Commit 065b448
authored
chore(iroh-bench): Allow configuring the number of worker threads for each endpoint in iroh-bench (#4063)
(this is #3780 reopened, because
that had the wrong target branch)
## Description
When I look at qlog files of iroh-bench runs, I can see that PATH_ACK
processing is severely delayed when using a single-threaded tokio
runtime for each endpoint.
This disappears when I give iroh-bench two worker threads. This allows
the EndpointDriver and the ConnectionDriver to each run independently of
each other, thus the endpoint driver won't be delayed when processing
PATH_ACKs.
When the processing was delayed, this had an effect on the apparent RTT
and in turn on congestion control.
## Screenshots
Before: Note all the blue lines going in from waaaaay back in history
all into one place on the left (those are the PATH_ACKs that get handled
way too late):
<img width="1720" height="772" alt="image"
src="https://github.com/user-attachments/assets/688e19e5-63bb-4d1c-9256-43ce0911a4c0"
/>
After: The PATH_ACKs get handled in time, they're way more interspersed
with stream frames:
<img width="1720" height="772" alt="image"
src="https://github.com/user-attachments/assets/a33db88c-dde0-458d-8007-12c7f119165d"
/>
## Change checklist
<!-- Remove any that are not relevant. -->
- [x] Self-review.1 parent 5edc1bc commit 065b448
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
| |||
140 | 155 | | |
141 | 156 | | |
142 | 157 | | |
143 | | - | |
144 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
145 | 170 | | |
146 | 171 | | |
147 | 172 | | |
| |||
0 commit comments