Questions tagged [io-uring]

37 questions
0
votes
1 answer

Cannot write file in Linux with liburing

I recently started using liburing and tried to write some demos. I met trouble when tried to write something into the disk. Here is my code, the error check has been removed. #include "liburing.h" #include #include #include…
Amor Fati
  • 337
  • 2
  • 7
0
votes
0 answers

When using kernel-side polling, how the liburing and kernel avoid lost wakeup?

After go through the source code, https://github.com/torvalds/linux/blob/ff1176468d368232b684f75e82563369208bc371/fs/io_uring.c#L6907 I am confuse about the wakeup when use kernel-side polling, user-thread: A. update-tail, then B.…
0
votes
2 answers

/usr/bin/ld: cannot find -lliburing

When compiled using gcc liburing-test.c -o liburing-test -lliburing flowing error is displayed /usr/bin/ld: cannot find -lliburing collect2: error: ld returned 1 exit status
0
votes
0 answers

IORING_ENTER_SQ_WAKEUP - undefined reference to `io_uring_enter'

I'm trying to run some tests using IORING_SETUP_SQPOLL, but when it's set and I call io_uring_cqe_get_data(cqe); I get "cqe failed: Bad file descriptor". Reading about Kernel Side Polling in io_uring.pdf, it seems that I might have to call: /* fills…
Alberto Pires
  • 319
  • 1
  • 5
  • 10
0
votes
1 answer

How do I use IORING_OP_READ_FIXED?

On the following page https://lwn.net/Articles/810414/ IORING_OP_READ_FIXED IORING_OP_WRITE_FIXED These opcodes also submit I/O operations, but they use "registered" buffers that are already mapped into the kernel, reducing the amount of total…
Eric Stotch
  • 141
  • 4
  • 19
0
votes
1 answer

Multiplexing with io_uring

I've recently written a simple TCP server using epoll, but I want to explore other mechanisms for high performance mutliplexing, to that end I came across io_uring, and am planning on making another simple TCP server using it. However I read that…
warmtea
  • 107
  • 9
1 2
3