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
4
votes
1 answer
Does one nginx worker process handle two requests concurrently or one by one?
The really cool part about the filter
chain is that each filter doesn't wait
for the previous filter to finish; it
can process the previous filter's
output as it's being produced, sort of
like the Unix pipeline. (from here)
I guess the…

cpuer
- 7,413
- 14
- 35
- 39
4
votes
1 answer
How to get user data for aio signal handler in Mac OS X
I am attempting to use the aio_* functions for asynchronous file IO under Mac OS X, but I am having problems with getting some form of user data into the signal handler.
This is the code that sets up an operation:
class aio_context {
public:
…

villintehaspam
- 8,540
- 6
- 45
- 76
4
votes
1 answer
Simultaneous socket read/write ("full-duplex") in Linux (aio specifically)
I'm porting an application built on top of the ACE Proactor framework. The application runs perfectly for both VxWorks and Windows, but fails to do so on Linux (CentOS 5.5, WindRiver Linux 1.4 & 3.0) with kernel 2.6.X.X - using librt.
I've narrowed…

Yotam
- 41
- 1
- 3
4
votes
1 answer
"Linux aio" and "Linux native aio" are the same thing?
I'm recently digging into linux io model, and I frequently hear that like windows IOCP, linux has its own aio model implementation: Glibc aio and kernel aio.
Question:
(1) when people say "linux native aio", which model is indicated?
(2) I hear 2…

Troskyvs
- 7,537
- 7
- 47
- 115
4
votes
1 answer
Applications using kernel AIO
Can anyone point me to some (preferably commonly-used) applications that use kernel AIO (i.e., io_submit() family), like any SQL/no-SQL database, etc.? I want it to be able to issue asynchronous reads with queue-depths of more than 1 on each thread…

Mohammad Hedayati
- 241
- 1
- 9
4
votes
1 answer
io_submit waits for all oracle dbwriter I/Os
By way of background, I have been tuning platforms for databases since the 80s. So, I have dealt with a lot of async I/O issues in the past. This one is new, and weird.
First, the I am using Oracle 12c with ASM on RHEL 7.1 64-bit (3.10.0-229). I…

user3470127
- 81
- 4
4
votes
1 answer
Can I rely on Linux close() not blocking for file I/O?
I am using Linux aio (io_submit() / io_getevents()) for file I/O. Since some operations do not have aio equilvalents (open(), fsync(), fallocate()), I use a worker thread that may block without impacting the main thread. My question is, should I…

Avi Kivity
- 1,362
- 9
- 17
4
votes
3 answers
Java NIO windows implementation
While working on a project using the the NIO.2 AIO features I looked in the "old" NIO selector implementation and saw that on windows the default select-function is used which does not scale at all on windows due to a bad internal implementation.…

Kr0e
- 2,149
- 2
- 24
- 40
4
votes
1 answer
Is a sendfile() like operation possible with linux-aio?
I want to send data from one file descriptor to another via linux-aio without buffering and without transferring data to and from user space. Is such a sendfile64() funktion possible with linux-aio?
I looked at some linux-aio examples (in C/C++) and…

Philip Schneider
- 43
- 2
4
votes
2 answers
Does aio_write always write the whole buffer?
I know that the POSIX write function can return successfully even though it didn't write the whole buffer (if interrupted by a signal). You have to check for short writes and resume them.
But does aio_write have the same issue? I don't think it…

cjm
- 61,471
- 9
- 126
- 175
4
votes
6 answers
Compiling C++ program with POSIX AIO lib on Linux
I'm having difficulty with the linker when it comes to compiling a sample program that uses the POSIX aio library (e.g. aio_read(), aio_write(), etc) on Linux.
I'm running Ubuntu with a 2.6 kernel, and have used the apt-get utility to install…
Charles Salvia
3
votes
1 answer
Proper handling of context data in libaio callbacks?
I'm working with kernel-level async I/O (i.e. libaio.h). Prior to submitting a struct iocb using io_submit I set the callback using io_set_callback that sticks a function pointer in iocb->data. Finally, I get the completed events using io_getevents…

Noah Watkins
- 5,446
- 3
- 34
- 47
3
votes
0 answers
aio pika Timeout exception on await message ack to rabbitmq
I`m using aio pika version 6.7.1 with python 3.7.7 with rabbitmq 3.8.9.
the consumer looks like the documentations suggests:
async with connection:
# Creating channel
channel = await connection.channel()
…
user2552806
3
votes
0 answers
When using aio-pika, is there a way to disable certificated verification
I'm trying to use aio-pika to establish a secured connection to rabbitmq, while disabling certificate verification.
According to the documentation you can pass both ssl boolean flag, and ssl_options dictionary.
I tried passing both, specifying…

TheRennen
- 549
- 4
- 16
3
votes
1 answer
What is the difference between posix aio and freebsd aio?
Could someone please explain the differences between posix AIO and freebsd AIO? Seems the functions are the same, aio_read/aio_write.
I understand that linux native AIO is only available in Linux, and uses io_setup/io_submit, etc

vego
- 889
- 1
- 8
- 20