OpenSearch/modules/transport-netty4
Armin Braun 14a042fbe5
Make No. of Transport Threads == Available CPUs (#56488) (#56780)
We never do any file IO or other blocking work on the transport threads
so no tangible benefit can be derived from using more threads than CPUs
for IO.
There are however significant downsides to using more threads than necessary
with Netty in particular. Since we use the default setting for
`io.netty.allocator.useCacheForAllThreads` which is `true` we end up
using up to `16MB` of thread local buffer cache for each transport thread.
Meaning we potentially waste CPUs * 16MB of heap for unnecessary IO threads in addition to obvious inefficiencies of artificially adding extra context switches.
2020-05-14 21:33:46 +02:00
..
licenses Upgrade netty to 4.1.49.Final (#56059) 2020-05-05 10:40:23 -06:00
src Make No. of Transport Threads == Available CPUs (#56488) (#56780) 2020-05-14 21:33:46 +02:00
build.gradle Upgrade netty to 4.1.49.Final (#56059) 2020-05-05 10:40:23 -06:00