Giter VIP home page Giter VIP logo

Comments (6)

gwnet avatar gwnet commented on August 15, 2024 1

it works after I update kernel to 5.8. :)

from io_uring-by-example.

shuveb avatar shuveb commented on August 15, 2024

Hello,

Looks like you're running this on Windows Services for Linux (WSL). I'm not sure it supports io_uring. Can you confirm if you are running this on WSL Ubuntu or you're running this inside of a Linux virtual machine?

from io_uring-by-example.

gwnet avatar gwnet commented on August 15, 2024

no, I run on Xeon HW, you see Visual Studio because I use Visual Studio remote debug feature to debug the application running in the linux. it is not WSL. for sure. :)

I run this on Ubuntu server 20.04.

from io_uring-by-example.

gwnet avatar gwnet commented on August 15, 2024

any thing I can do?

from io_uring-by-example.

shuveb avatar shuveb commented on August 15, 2024

Hello,

I see from your uname output that your kernel is v5.4. However, according to liburing documentation for the accept operation, support for accept was added in kernel v5.5. That's the problem. You can run the probe.c example program from Lord of the io_uring example programs repo to determine which io_uring operations your kernel supports.

Tip: You can use Arch Linux which usually runs the most recent kernels, or you can install more recent kernels on Ubuntu as well. Make sure you run the probe program to see if all required features to run an example are supported by your running kernel.

Hope that helps!

from io_uring-by-example.

gwnet avatar gwnet commented on August 15, 2024

@shuveb Yes, you are right. I will install latest kernel with one VM to test again.

intel@wcp116:/wayne/loti-examples/build$ sudo ./probe
[sudo] password for intel:
You are running kernel version: 5.4.0-42-generic
This program won't work on kernel versions earlier than 5.6
Report of your kernel's list of supported io_uring operations:
Segmentation fault
intel@wcp116:
/wayne/loti-examples/build$

from io_uring-by-example.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.