Commit f52405d
authored
IoUring: Explicit set CQSIZE by default and use a much saner default … (#15477)
…value for the submission ring
Motivation:
As default we used a size of 4096 for the submission ring which these
days does not make a lot of sense anymore as you can size the submission
queue and completion queue seperately. Generally speaking usually you
see much more completions compared to submissions, especially as we
enable multishot by default these days. Beside this you should also not
batch too much in general before submission as this will affect latency.
Because of this we should use a more sane default value for the
submission queue which will also ensure we submit fast enough while
still get some batching to reduce syscalls. Also we need to size the
completion queue big enough to be able to receive enough completioms per
batch.
Modifications:
- Change the default submission queue size to 128
- Change the default completion queue size to 4096
Result:
Better defaults1 parent b23e304 commit f52405d
3 files changed
Lines changed: 15 additions & 5 deletions
File tree
- transport-classes-io_uring/src/main/java/io/netty/channel/uring
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
102 | | - | |
103 | | - | |
| 101 | + | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | | - | |
| 229 | + | |
231 | 230 | | |
232 | 231 | | |
233 | 232 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments