Why MAX_RUNNABLE_BLOCK_SIZE=16 in ConsumerWorkService #813
Replies: 3 comments
-
It is not meaningless according to benchmarks.
The value can be set to 128 or 256, the effectiveness of higher prefetch values hits the law of diminishing returns. |
Beta Was this translation helpful? Give feedback.
-
你好,你的邮件我已收到。苗卫伟
|
Beta Was this translation helpful? Give feedback.
-
Setting the value to 256 produces a low single digit % gain in throughput and a comparable reduction in mean consumer latency. I will submit a PR in a bit. |
Beta Was this translation helpful? Give feedback.
-
It is meaningless to set prefetch count>16 without using thread pool
version:5.15.0
Beta Was this translation helpful? Give feedback.
All reactions