Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:59:32+00:00 2026-06-07T07:59:32+00:00

I have started looking at a new paradigm I didn’t know called asynch IO

  • 0

I have started looking at a new paradigm I didn’t know called asynch IO in Linux.

My goal is to use async IO targeting sockets to write high-performance efficient servers. The reason is that my application is IO-bound.

While searching for more information I came across the following 2 introductions.

  1. Posix AIO

  2. Linux AIO interface

In a asynchronous framework, the situation I would like to avoid is to create a new thread for each notification I need to process asynchronously since it will kill my application.

My questions are the following:

  1. Do the behind-the-scenes of these 2 frameworks address this problem?

  2. If yes what would you suggest having in mind socket?

Regards

AFG

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:59:33+00:00Added an answer on June 7, 2026 at 7:59 am

    None of these are really intended for sockets.

    The POSIX AIO interface creates threads that use normal blocking IO. They work with the buffer cache and should in principle even work with sockets (though I’ve admittedly not tried).

    The Linux kernel AIO interface does not create threads to handle requests. It works exclusively in “no buffering” mode. Beware of non-obvious behaviour such as blocking when submitting requests in some situations, which you can neither foresee nor prevent (nor know about other than your program acting “weird”).

    What you want is nonblocking sockets (a nonblocking socket is “kind of asynchronous”) and epoll to reduce the overhead of readiness notification to a minimum, and — if you can figure out the almost non-existing documentation — splice and vmsplice to reduce the IO overhead. Using splice/vmsplice you can directly DMA from disk to a kernel buffer and push to the network stack from there. Or, you can directly move pages from your application’s address space to kernel, and push to the network.
    The downside is that the documentation is sparse (to say the least) and especially with TCP, some questions remain unaddressed, e.g. when it is safe to reclaim memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started to try out to use the new Search API, the demo
I am quite new to the Entity Framework, and only have recently started looking
I started looking at HTML5 new history API However, I have one question. How
looking at dribbble, I have started to ask myself, how I would implement a
I am just getting started couchdb and have been looking into writing couch apps.
I have started to look into python and am trying to grasp new things
I have started using SqLite recently, so I am relatively new to it. I
I have started reading the book Essential Linux Device Drivers. I am following the
I have started looking into iPhone game programming. I want to build a game
HI all. I have started a new job recently where I am supposed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.