bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports GNU Parallel 20131222 (' 玉兔 Mandela') relea


From: Zhi Shen
Subject: Re: GNU Parallel Bug Reports GNU Parallel 20131222 (' 玉兔 Mandela') released
Date: Tue, 14 Jan 2014 09:51:20 -0500

Ole,

I am so confused.  Looking at the manual, it states that it is sorted by sslogin.  But it seems you have it alphabetically sorted.

http://www.gnu.org/software/parallel/man.html

--keep-order
-k

Keep sequence of output same as the order of input. Normally the output of a job will be printed as soon as the job completes. Try this to see the difference:

  parallel -j4 sleep {}\; echo {} ::: 2 1 4 3
  parallel -j4 -k sleep {}\; echo {} ::: 2 1 4 3

If used with --onall or --nonall output will be sorted according to sshlogin


Here are the runs with parallel on our system.

address@hidden:~/release_management/deployment/scripts$ ./parallel --nonall --keep-order -S 'stgcore02,stgcore03,stgcore01' 'hostname' 2>/dev/null
stgcore03
stgcore01
stgcore02

address@hidden:~/release_management/deployment/scripts$ ./parallel-20131222 --nonall --keep-order -S 'stgcore02,stgcore03,stgcore01' 'hostname' 2>/dev/null
stgcore01
stgcore02
stgcore03

And you are saying that in order for us to keep the sshlogin order ( stgcore02, stgcore03, stgcore01 ), we will need to make the suggested patch to parallel?

Thanks,
zhi




On Tue, Jan 14, 2014 at 7:21 AM, Ole Tange <address@hidden> wrote:
On Tue, Jan 14, 2014 at 5:42 AM, Zhi Shen <address@hidden> wrote:

> Is there a way to keep the order of the sshlogin?

Currently no. But if you write a patch for it I will consider applying it.

In your design of the patch you should at least think of these problems:

* The sshlogin can be read from --sshloginfile files, the environment
variable $PARALLEL, the --sshlogin option, user profiles living in
~/.parallel/* , the system profile in /etc/parallel/config, and any
combination of those. Which one will sort before the other?

* An sshlogin is:
    [ssh command (possibly with full path) with address@hidden
  and all different combinations of those. Which one will be sorted
before the other?


/Ole



--
Zhi Shen


reply via email to

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