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
aio_read inside signal handler
I'm going to use aio for async read. When aio completes and signal handler is triggered, I may need to do another aio_read call and proceed.
aio_read isn't mentioned among safe functions (in man signal). Ordinary read is, though.
What are the…

olegst
- 1,209
- 1
- 13
- 33
0
votes
1 answer
IO multiplexing in Linux
Is there something like the sendfile-syscall that works with multiple target file descriptors (i.e. instead of copying from one FD to another FD, it could should copy to, say, 4 FDs)?
I know that when talking about asynchronous IO, this is known as…

pmf
- 7,619
- 4
- 47
- 77
0
votes
2 answers
Can't install MySQL 5.7 on server without root account
I am using a hosting server that doesn't provide me with a root account.
They don't provide me with an installation service of database.
The server is Red Hat Enterprise Linux Server release 6.1 (Santiago) x86_64.
I tried to download and install…

Iwao Nishida
- 866
- 6
- 6
0
votes
1 answer
How does java AsynchronousFileChannel work if the kernel not support AIO
I have 2 questions
How will AsynchronousFileChannel work if my operating system does not support AIO (lower then linux 2.6 etc).
How to append sth into AsynchronousFileChannel, as far as I know AsynchronousFileChannel only supports…

Alexis
- 1,080
- 3
- 21
- 44
0
votes
1 answer
two blocking operations in one process
I have 2 simple jobs. 1st is reading from pipe. And 2nd is do some operations by timeout.
The problem is to make it work in one process (I khow way to do it in 2 process but it is unsuitable for me..).
And there is some reasons to dont use cron.
2…

alex_90
- 111
- 4
0
votes
1 answer
aio_write() isn't working when I try to write a simple text
I am trying write a simple thing to a file it seems AIO doesn't working. What can be the problem ? I know there are extra headers which are…

CrimsonKing
- 5
- 3
0
votes
1 answer
io_getevents returns less number of jobs than requested in time shorter than timout
I am reading SSD, requesting 20 async jobs. io_getevents returned value 7 indicating that it timed out. timeout is set to 10 seconds as seen below. elapsed time of the call is really 4.89e-05 seconds, eg, there were still almost all 10 seconds…

Grzegorz
- 3,207
- 3
- 20
- 43
0
votes
3 answers
Read file using libaio with O_DIRECT flag
I am reading file using asynchronous libaio.
The code below shows how I do that. The code works fine,
but now I want to switch to O_DIRECT mode to avoid file caching.
When I change the line 25 to fd = open("./testfile", O_RDONLY|O_DIRECT);
the…

Maxim Zakharenkov
- 311
- 2
- 12
0
votes
1 answer
open: Invalid argument in direct I/O
I was trying to make a AIO practice via kernel AIO API. Here is some code:
#define _GNU_SOURCE /* syscall() not POSIX */
#define ALIGN_SIZE 4096
#define RD_WR_SIZE 1024
/* ... */
/* Make the alignment according to page size to validate open()…

coanor
- 3,746
- 4
- 50
- 67
0
votes
1 answer
undefined reference to 'lio_listio' [posix asynchronous I/O]
I am trying to use POSIX API 'lio_listio' in my program to issue multiple asynchronous I/O system calls with the overhead of 1 kernel context switch.
I have included the library aio.h and also compiled my code with -laio flag.
Also I have…

sam32
- 325
- 1
- 4
- 11
-1
votes
2 answers
how to use and debug micropython-aioble library for esp32?
I am using micropython for esp32 to make BLE app using aioble library.i am using as per sample code + add from library but i am facing this problem and don't understand why. Is it because the library is having problems?. I have followed the…

Nguyễn Thuận Hải
- 29
- 5
-1
votes
1 answer
change data after aio_write to file request
Is it safe to change or free the buffer passed to aio_write for writing in a file. Or should i wait for the operation to finish?
Does the function copy all the buffer content to the queue or just the reference to the data?

CSNooB
- 39
- 6