GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — netty/transport-native-io_uring at 4.2 · Raghuvardhan-Reddy78/netty

Expand file tree

/

transport-native-io_uring

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

transport-native-io_uring

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Netty io_uring

The new io_uring interface added to the Linux Kernel 5.1 is a high I/O performance scalable interface for fully asynchronous Linux syscalls

Requirements:

  • x86-64 / aarch64 / riscv64 processor
  • at least Kernel 5.14, compiled with CONFIG_IO_URING=y
  • to run the tests, you have to increase memlock(default 64K)
  • Java 9

See our wiki page.

How to include the dependency

To include the dependency you need to ensure you also specify the right classifier. At the moment we only support linux x86_64 and aarch_64 but this may change.

As an example this is how you would include the dependency in maven for x86_64:

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-transport-native-io_uring</artifactId>
    <version>${netty.version}</version>
    <classifier>linux-x86_64</classifier>
</dependency>

And in gradle:

dependencies {
    implementation 'io.netty:netty-transport-native-io_uring:${netty.version}:linux-x86_64'
}

FAQ

I tried to use io_uring but got java.lang.RuntimeException: failed to create io_uring ring fd Cannot allocate memory

When you tried to use io_uring but saw an exception that looked like this please try to encreate the memlock limit for the user that tries to use io_uring:

Exception in thread "main" java.lang.UnsatisfiedLinkError: failed to load the required native library
	at io.netty.channel.uring.IoUring.ensureAvailability(IOUring.java:63)
        ...
        ...
Caused by: java.lang.RuntimeException: failed to create io_uring ring fd Cannot allocate memory
	at io.netty.channel.uring.Native.ioUringSetup(Native Method)
	at io.netty.channel.uring.Native.createRingBuffer(Native.java:141)
	at io.netty.channel.uring.Native.createRingBuffer(Native.java:174)
	at io.netty.channel.uring.IoUring.<clinit>(IOUring.java:36)
	... 17 more

You can check your current memlock settings by

$ ulimit -l
65536
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.