Skip to main content

Questions tagged [async]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
116 views

Understanding I/O Depth in **Output** of Fio for performance insights

I've been using libaio to benchmark the IOPS of an NVMe SSD, and I've noticed an interesting observation in the output regarding IO submit and IO complete. (Note that I am not asking about the fio's ...
JGL's user avatar
  • 147
0 votes
1 answer
39 views

how to get file descriptors of PTY inside of a child?

https://man7.org/linux/man-pages/man7/pty.7.html in the "UNIX 98 pseudoterminals" it is said that ptsname can be used (and then open), but this function accepts file descriptor. i tried to ...
Michael Quad's user avatar
0 votes
1 answer
19 views

how to install brew forumlae simultaneously?

I tried this, I'll keep the list short: IFS=$'\n' pkgs=( go gcc make node ) installPkgs() { brew install $1 } export -f installPkgs parallel -j 0 installPkgs ::: ${pkgs[@]} This didn'...
Nickotine's user avatar
  • 467
1 vote
1 answer
9k views

Curl returning with no response and does not wait for `wait=x seconds`

I call an async service that takes ~80 seconds to respond. I run: curl -v -X POST https://hostname.com/service/v2/predict \ -H 'x-api-key: somekey' \ -H 'x-request-id: longfiles' \ -H "...
Franck Dernoncourt's user avatar
0 votes
1 answer
69 views

Asynchronous downloading from virtual machine?

I have some files stored on a virtual machine that I'm downloading onto my PC. There are approximately 1 million files and I have been using the following command: scp vm_user@IP:/home/vm_user/...
dollar bill's user avatar
3 votes
2 answers
3k views

How to attach a listener to sysfs files?

How to watch for sysfs file changes (like /sys/class/net/eth0/statistics/operstate) and execute a command on content change? inotify does not work on sysfs I don't want to poll. I want to set a ...
Zeta.Investigator's user avatar
3 votes
2 answers
2k views

Stopping an asynchronous while loop in a shell script

I have a asynchronous while loop that restarts processes until some condition is met. This look something like this: (while [ "$check_condition" -eq 1 ]; do ./async_command done) & ....
N. Krh's user avatar
  • 33
4 votes
1 answer
486 views

Why does io_uring have a layer of indirection for the submission queue?

From the paper on io_uring, the submission ring contains indices into a submission array, where the submission event itself is stored. The documentation explains this layer of indirection as follows: ...
perpetual_check's user avatar
4 votes
1 answer
665 views

How to set interval for an asynchronous command in bash?

I'm trying to achieve this while condition; do var=value1 ### update value every 5s while sleep 5; do var=value2 done ### ... [ rest of code ] done The problem here is that the script will ...
Belka h.j's user avatar
4 votes
1 answer
2k views

To sync or not to sync in an embedded environment?

I have a single board appliance that runs Debian 10 on a chunk of flash. UBIFS is used, and is split into two volumes: an ro roots, and an rw /var. I have found that under power cycling/reset ...
Travis Griggs's user avatar
1 vote
1 answer
369 views

Enabling Asynchronous IO at HP-UX Operating System

We are using HP-UX Itanium version B.11.31 and this server is used for running Sybase database version ASE15.7. I would like to know how to enable Asynchronous IO at Operating System level. I went ...
Learning_DBAdmin's user avatar
0 votes
1 answer
460 views

Asynchronous background jobs in linux can interfere to each other?

I was trying to use a linux command repeatedly and I decided to use bash scripting. The command is curl and it has blue screen given to the target web server. I was doing this as a pentester in my ...
Hasan's user avatar
  • 101
0 votes
1 answer
457 views

Linux AIO / io_submit / io_getevents / on fifo (named pipes)

I have to write a lot of data to a pipe. Can I use the Linux calls io_submit/io_getevents for writing to Named Pipes or it is defined only for regular files. I tried finding any document which ...
Rishi Agrawal's user avatar
2 votes
1 answer
672 views

What does "asynchronous" mean in these cases?

I have asked what "asynchronous" means a while ago for interrupts. Now I have the same question but for running shell commands and for cancelling threads. From Bash manual If a command is ...
Tim's user avatar
  • 103k
3 votes
1 answer
1k views

Messages on new terminal after using nohup

I'm trying to run a few commands asynchronously on a login script (.bash_profile). When I open a new terminal, I see messages like this. They also show up when I log onto a system over SSH. Last ...
user avatar
14 votes
1 answer
7k views

Save cursor position and restore it in terminal

I am playing with some terminal capabilities to create async prompt output on bash. I want to get something like this: while outputting string in PROMPT_COMMAND, save terminal cursor position, print ...
Lapshin Dmitry's user avatar
0 votes
1 answer
356 views

Process switch with clone() [closed]

Now, I have to write a c program and use clone() to make process do things asynchronous. I've read the manual of clone(); however, I still don't know how to make it work asynchronous. I use flags ...
CYB's user avatar
  • 103
193 votes
8 answers
102k views

Can I watch the progress of a `sync` operation?

I've copied a large file to a USB disk mounted on a Linux system with async. This returns to a command prompt relatively quickly, but when I type sync, of course, it all has to go to disk, and that ...
mattdm's user avatar
  • 40.4k
2 votes
1 answer
470 views

Set a callback for when a certain process is spawned

The script I'm writing launches process A, which after an uncertain amount of time, launches a child process B. I need the script to execute a command C which depends on process B. But B might not be ...
deprecated's user avatar
  • 2,371
1 vote
2 answers
2k views

run script asynchronously / in a different process

I have a simple php script <?php for($i=0;$i<10;$i++){ sleep(1); echo $i; } Which I run from the command line php myfile.php & I would expect I can do other things in the command line, ...
Itay Moav -Malimovka's user avatar
4 votes
1 answer
1k views

Populate PS1 asynchronously

I have a few git svn related functions that see if I have to pull/push from/to the repository. My problem is that the functions I've written to gather this information are too slow. I'd like to make ...
Alberto Zaccagni's user avatar