Asynchronous Input/Output, in computer science, is a form of input/output processing that permits other processing to continue before the transmission has finished.
Questions tagged [aio]
177 questions
3
votes
0 answers
Not seeing performance improvement using asyncio and aioboto3 for DynamoDB writes
I'm trying to improve the performance of a lambda function that is used to write thousands of items to a dynamoDB table. I came across a suggestion to use the aiboto3 library for async writes, but I'm not seeing an improvement with my current…

sffictly_srvrls
- 31
- 3
3
votes
2 answers
Compiling Nginx on Alpine Linux 3.11
I am trying to compile Nginx with the below config options, and it keeps failing with the error:
checking for kqueue AIO support ... not found
checking for Linux AIO support ... not found
checking for Linux AIO support (SYS_eventfd) ... not…

user1607158
- 478
- 1
- 4
- 12
3
votes
1 answer
Simple example for aio_write()
I'm searching for a simple example for the POSIX aio_write function.
What I tried so far
The below is not too important. Just jump to answer
The code below creates a file, but does not write anything to it. aio_error returns 22 (= quota exceeded,…

DarkTrick
- 2,447
- 1
- 21
- 39
3
votes
1 answer
Is there a way to get the internal limits for the number of events for io_setup() call on Linux?
The man page for io_setup() says it will fail with EINVAL if the specified maxevents exceeds internal limits.
Is there a way to find out what this "internal limit" is?

UBA
- 81
- 6
3
votes
2 answers
aio on osx: Is it implemented in the kernel or with user threads? Other Options?
I am working on my small c++ framework and have a file class which should also support async reading and writing. The only solution other than using synchronous file i/o inside some worker threads I found is aio. Anyways I was looking around and…

moka
- 4,353
- 2
- 37
- 63
3
votes
0 answers
aio_write() and lio_listio() of POSIX AIO don't work correctly in write operation
I'm setting up a asynchronized writer and want operation order on file be guaranteed by that. I use it as writer in another program which read a pcap file. Consider I have already tried to use both linux-aio and POSIX aio in my code seperately, to…

Resist
- 73
- 6
3
votes
1 answer
Is there an asynchronous version of sendfile in Linux?
The io_getevents notification mechanism looks quite capable at first glance, so I would like something I could use with it. I just couldn't find anything yet. On Windows, it's easy: There is only TransmitFile, which can work asynchronously…

purefanatic
- 933
- 2
- 8
- 23
3
votes
2 answers
How do disk controllers handle concurrent writes to same sector in absence of write barriers?
When I open a file with O_DIRECT|O_ASYNC and do two concurrent writes to the same disk sector, without a fsync or fdatasync in between, does the linux disk subsystem or the Hardware disk controllers offer any guarantee that the final data on that…

Tautology
- 385
- 2
- 9
3
votes
1 answer
aio.h aio_read() and write memory leak
I'm trying to read and write asynchronously to disk in C++ (using the posix aio library in Ubuntu 10.04), following the directions outlined here: aio tutorial. I can asynchronously read and write, but I'm afraid there is a small memory leak of some…

andy
- 81
- 3
3
votes
1 answer
Does posix aio in linux 2.6 support socket file descriptor?
I've seached such question in google and got different answers.I cann't determine whether posix aio in linux 2.6 support socket file descriptor or not.
if it support tcp socket,does the aiocb.aio_offset=0 relative to the first byte readed from the…

shuitu
- 253
- 1
- 2
- 7
3
votes
1 answer
linux IOSTAT double counting AIO write operations?
As part of debugging an IO generator, I've run across an odd set of results under RH 6.4 running on x64 hardware (validated on multiple systems):
-- The application uses linux async IO (i.e., non-posix) to access raw disk partitions (/dev/sdb1,…

Jack Stephens
- 31
- 2
3
votes
1 answer
Exit while performing asynchronous I/O operation
A program may first issues an asynchronous I/O operation with aio_read() or aio_write() and then call exit() to terminate itself.
...
aio_write(aiocbp);
exit(0);
My question is, will the exit() call wait until the async i/o is done or the program…

Naruil
- 2,300
- 11
- 15
2
votes
1 answer
Asynchronous I/O Linux
Need an async I/O Processing
Plan to use async I/O through aio* calls on Linux
The situation:
I have opened socket with AF_INET and SOCK_STREAM flags (TCP)
Have limit high watermark for send buffers
Want to write to that socket asynchronously, and…

westtrd
- 23
- 1
- 5
2
votes
1 answer
Can AIO run without creating thread?
I would like aio to signal to my program when a read operation completes, and according to this page, such notification can be received by either a signal sent by the kernel, or by starting a thread running a user function. Either behavior can be…

qdii
- 12,505
- 10
- 59
- 116
2
votes
1 answer
POSIX AIO: Any (good) way to correlate completion notifications back to original request?
Am I right in thinking that AIO completion notifications (whether done via threads or signals) give you no information as to which request has completed? Is there any way to accomplish this correlation other than having separate callback functions…

rivenmyst137
- 345
- 1
- 4
- 10