Score:0

What is the maximum value acceptable for xargs -P argument?

jp flag

In this answer they mention 10

I did man xargs and couldn't find what's the maximum limit.

Is it possible to send 10000 cURL requests per second? How about 50000 cURL requests per second? I mean all 50000 executing at same time?

jp flag
It depends on your hardware and network connection limits.
sofs1 avatar
jp flag
Is there any mapping of hardware/network vs. approx -P value? I can use cloud machines.
djdomi avatar
za flag
the question is what are you trying to curl? if its the same url apache load testing tool can do this without xargs, but remember i already shoot my own server into a DDoS due to forgotten this process in the background ;)
Score:1
ru flag

The maximum is implementation-dependent. You can show it by running xargs --show-limits (assuming Linux). There may also by (socket) limits by the OS or the user you're running this under.

sofs1 avatar
jp flag
I'm getting xargs: illegal option -- - usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr] [-L number] [-n number [-x]] [-P maxprocs] [-s size] [utility [argument ...]]
Zac67 avatar
ru flag
Then if you perhaps **provided a little more information about your system** someone could answer your question.
sofs1 avatar
jp flag
I use Mac OS...
sofs1 avatar
jp flag
I found an example here https://unix.stackexchange.com/q/279742/366317 But couldn't figure out which of those 5 sizes is applicable to -P
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.