what happens if you try with more clients, say 20? How fast is your network? What happens if your clients is on the server?

My server is using multiple cores. I run multiple clients on the same server. My server command is:

  $MOSES_DIR/bin/moses2 -f $CONFIG -i $IN -threads 12 -server
The client command is

   $MOSES_DIR/contrib/server/client-stdin.perl < in.800k

top gives me:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM TIME+ COMMAND
 3217 hieu      20   0 28.987g 0.014t 0.013t S 655.8 11.2 48:30.92 moses2
18754 hieu      20   0   64860  21884   4980 S  34.2  0.0 2:37.20 perl
 4779 hieu      20   0   64856  21836   4936 S  31.9  0.0 3:12.29 perl
 5526 hieu      20   0   64856  21968   5060 S  31.9  0.0 3:08.91 perl
11989 hieu      20   0   64860  21852   4948 S  31.2  0.0 3:00.67 perl


On 02/01/2017 15:24, Ankit Gupta wrote:
Hi Hieu,

Thanks for your reply.
Actually, I did htop in mosesserver machine on which I was hitting from different client machines at the same time. Then after htop, I saw that mosesserver machine was using only single core during decoding. At the same time I saw on two different client machine and found that when one client was giving decoding result then only second client machine starts decoding. Can you help me with this problem that why is it not using all core if I am hitting from different clients at the same time.

Thanks.

On Mon, Jan 2, 2017 at 6:25 PM, Hieu Hoang <[email protected] <mailto:[email protected]>> wrote:

    please subscribe to the Moses mailing list before posting to it.
    You can subscribe here:
    http://mailman.mit.edu/mailman/listinfo/moses-support
    <http://mailman.mit.edu/mailman/listinfo/moses-support>

    btw, how do you know it's executing 1-by-1?

    Hieu Hoang
    http://moses-smt.org/

    ---------- Forwarded message ----------
    From: <[email protected]
    <mailto:[email protected]>>
    Date: 2 January 2017 at 12:46
    Subject: Moses-support post from [email protected]
    <mailto:[email protected]> requires approval
    To: [email protected] <mailto:[email protected]>


    As list administrator, your authorization is requested for the
    following mailing list posting:

        List: [email protected] <mailto:[email protected]>
        From: [email protected] <mailto:[email protected]>
        Subject: Query in mosesserver for multiple clients
        Reason:  Post by non-member to a members-only list

    At your convenience, visit:

    http://mailman.mit.edu/mailman/admindb/moses-support
    <http://mailman.mit.edu/mailman/admindb/moses-support>

    to approve or deny the request.


    ---------- Forwarded message ----------
    From: Ankit Gupta <[email protected]
    <mailto:[email protected]>>
    To: [email protected] <mailto:[email protected]>
    Cc:
    Date: Mon, 2 Jan 2017 18:16:19 +0530
    Subject: Query in mosesserver for multiple clients
    Hi all,

    I am running mosesserver on one machine on port 8080 and using 2
    different machine as a client machine.
    The Moses server can be used by more than one client at the same
    time. However when I hit at the mosesserver from those 2 different
    machines then it executes those 2 hits one by one. It does not
    execute them in parallel way because it is using single thread.
    Can you please tell how can I run multiple hits from different
    client machines in different threads of the mosesserver at the
    same time ?

    Just for the information, I am using following command to run
    mosesserver:
    -> ~/mosesdecoder/bin/moses2 -server -search-algorithm 1
    -cube-pruning-pop-limit 2000 -s 2000 --server-port 8080 -config
    moses.ini  --threads 8 --server-maxconn 8 --server-maxconn-backlog
    8 --server-keepalive-maxconn 8

    Thanks.

    Regards,
    Ankit


    ---------- Forwarded message ----------
    From: [email protected]
    <mailto:[email protected]>
    To:
    Cc:
    Date:
    Subject: confirm 43abcae06bfeddab54bc378bf011cb79825ef9a4
    If you reply to this message, keeping the Subject: header intact,
    Mailman will discard the held message.  Do this if the message is
    spam.  If you reply to this message and include an Approved: header
    with the list password in it, the message will be approved for posting
    to the list.  The Approved: header can also appear in the first line
    of the body of the reply.



--
Hieu Hoang
http://moses-smt.org/

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to