Skip to content

Add option to disable usage of Native code with Netty #34020

@isaacrivriv

Description

@isaacrivriv

We have added the changes to use Epoll/KQueue Native code, here. We have noticed that this has introduced a couple of bugs in our testing/implementation of Netty that we had not seen before. In case there are more issues like this which we haven't identified, we should have a configuration/option to switch the use of native code and use the plain Java NIO configuration.

Other identified configuration can be found in issue #32230

Keeping open until we're closer to GA to review properties.

TO DO

  • Reminder to review the name and description of this property before we GA it.
  • The system property should also be removed: io.openliberty.netty.internal.useNativeIO

Performance Gains:

1210-1102 is 26.0.0.1 and my Epoll build is 1833.

Image

Emmanuel mentioned:

Seems like your changes help with Concurrent Priority Blocking Queue (CPBQ), but not as much with the Bounded Buffer (BB).
Although it seems like something went in between 250012 and 1210-1102 that is making BB to regress, even without your changes.

However, I recommend running further tests to verify performance more cleanly.

Metadata

Metadata

Type

No type

Projects

Status

Less Complex Issues

Relationships

None yet

Development

No branches or pull requests

Issue actions