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
0
votes
1 answer
What efficiency is the AsynchronousFileChannel on windows os?
I'm learning about the Java NIO.2 API these days, I did a test to compare the efficiency between AIO and the Standard IO,The test is to write a 2000M file.Here is the code.
The standard way:
FileOutputStream output = new…

Cherokee
- 143
- 8
0
votes
1 answer
IOCP file limit on AIX 7.1
I am seeing E_BADF returned from aio_read/aio_write operations against FD 192 when the application is accessing a large number of files through a common IOCP.
Is there a limit to the number of files descriptors that can be associated with a simple…

Jack Stephens
- 31
- 2
0
votes
0 answers
java aio may have bugs in the Mac
I developed an open source framework smart-socket, all aspects are still quite satisfactory, except that there is a strange phenomenon can not find a solution.
This project in Windows, Linux system can be stable operation, but the operation under…

Seer
- 1
- 1
0
votes
1 answer
fio error checking for write operations
I am trying to determine how fio (github.com/axboe/fio) determines if there is a write error when using the libaio ioengine.
From the post at linux kernel aio functionality, I see an example of error checking in the callback function, work_done(),…

S. Forman
- 109
- 2
- 8
0
votes
1 answer
C++ asynchronous network programming
I have some simple questions, I have a client-server application and data sent on the wire.
I'd like to be able to recover the data and handle it properly.
struct T1
{
int id;
int foo;
};
struct T2
{
int id;
char foo;
int bar;
};
Let's…

sirAA
- 3
- 1
0
votes
1 answer
How to `open` and `close` a serial port asynchronously?
I'm trying to use serial ports in an async manner. I can use select, poll, or epoll with O_NONBLOCK to do async read and writes. But what about open and close?
I've seen close block for more than a second.

kptlronyttcna
- 1,461
- 1
- 16
- 22
0
votes
1 answer
Why boost::aio is asynchronous when its implementation is based on epoll(synchronous)
We know:
(1) epoll is synchronous, based on user query/system notify. A while loop is used to call all woke up fds.
(2) boost::asio declares itself to be "asynchronous", but its implementation on linux is using epoll.
My question is: how can you…

Troskyvs
- 7,537
- 7
- 47
- 115
0
votes
1 answer
aio_write on Large Files
I'm trying to essentially mimic the functionality of sendfile(2) in an asynchronous fashion using aio_read(3) and aio_write(3).
Everything seems to be working fine, with the exception of testing large (> 150k) files.
I have a simple struct…

James Taylor
- 6,158
- 8
- 48
- 74
0
votes
0 answers
Large memory usage of aio
I write a test program with aio, but I find that when the main process of writing data is over, the memory usage of my process never falls down. Can any one give some tips about the problem of my program, or about aio cache?
My program:
#include…

Bruce
- 1
0
votes
2 answers
why does aio_write() act wrong?
I want to write 2 files by using aio_write.
Used 32KB buffer and repeat aio_write 2048 times for 1 file.(file size is 64MB)
However result is not 64MB but size is 64MB + 32KB, now.
Also sometimes file is written by garbage.
I want to fill 'A' to…

Kwang Hun Lee
- 23
- 2
- 6
0
votes
1 answer
alfresco sdk authentication bearer with own filter
I started using Alfresck SDK (All in one) the latest version. I am trying customise authentication in Alfresco. I configured a new authentication using documentation: authentication but I want to provide JWT Token base authentication.
When I try to…

falcon
- 85
- 1
- 2
- 8
0
votes
1 answer
Why submitting pwrite request using io_submit API is much slower than submitting pread request?
I have an application that reads large amount of data from the disk and also writes a lot. I'm trying to use direct io to improve the I/O performance.
Now I'm using libaio to implement the asynchronous IO, both for read and write. The preliminary…

vincent_f
- 83
- 1
- 5
0
votes
0 answers
mysql crash windows aio cannot continue operation
today my installation of mysql 5.5.20 wamp has been randomly crashing.
seems like it fails at
InnoDB: File operation call: 'Windows aio'.
InnoDB: Cannot continue operation.
i have run mysqlcheck -c -u root -p --all-databases , and everything…

Zubinn Tan
- 1
- 4
0
votes
1 answer
java aio SO_KEEPALIVE not supported in ubuntu 16.04?
I am testing java AsynchronousServerSocketChannel, but when I tried set SO_KEEPALIVE=true, a error message showed me that not support it? How to fix below issues? It is really not support keep-alive in ubunut server?
The code is:
private void…

Andy Chan
- 277
- 5
- 16
0
votes
1 answer
Does Linux AIO support RAW sockets?
I am struggling to get AIO working on Linux (version 3.19) for receiving packets on a RAW socket, but to no avail. I've successfully used AIO for UDP and TCP sockets, but can't make it work for a RAW socket. I've tried both IPv4 and IPv6.
Does…

HannesM
- 55
- 1
- 11