bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29512] [feature request] xargs parallel processing env-val improve


From: anonymous
Subject: [bug #29512] [feature request] xargs parallel processing env-val improvement
Date: Sun, 11 Apr 2010 19:00:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Chrome/5.0.365.0 Safari/533.3

Follow-up Comment #4, bug #29512 (project findutils):

>> If yes, why not use the PID of the child?

because PID is different for each process. when you will pass me xargs
"slot", then i will run 400 tasks on 4 CPUs, the slot value will be from 1 to
4 only which is usefull.

i think you are still not understand me. i am speaking about something like
this:

seq 0 99 | xargs bash -c 'echo $XARGS_SLOT'
1
2
3
4
2
1
4
3
1
3
...

so for example i will be able to run processes on slots 1 and 2 and the
others pass somewhere else.

at this time you already know this value in xargs and all i want is to set it
to envinronment :-) you know that you can run only N processes, so i guess
that you have some array with filedescriptors or PIDs of those processes and
you are waiting until some index of this array will exit, so you will put
another process to this array. all i want is to know current index of my
process in this array.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29512>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]