Hi Marisel,

By default, the DMTCP coordinator process binds to and uses port 7779. If you 
don't specify any port (for example, `dmtcp_coorditor -i 10`), the coordinator 
process will use port 7779. Since you already have coordinator that's using 
this 
port on terminal-1, the second coordinator process cannot re-ruse it. You need 
to specify a different port for the second coordinator (on terminal-2):

   $ dmtcp_coordinator -p <XXXX> ... # other options

When you run your program under dmtcp_launch, you'd have to specify the 
coordinator port explicitly.

   $ dmtcp_launch --join --coord-port <XXXX> ./a.out ... # other options

You can also let the coordinator process pick a free port on its own using `-p 
0`.
It'll list the port it is using on the terminal, and then you can ask 
dmtcp_launch/restart
to join with the coordinator you want (by using "--coord-port <XXXX>").

-Rohan

----- Original Message -----
From: "Marisel Di Pietro" <marisel....@gmail.com>
To: "dmtcp-forum" <dmtcp-forum@lists.sourceforge.net>
Sent: Thursday, December 7, 2017 7:52:49 AM
Subject: [Dmtcp-forum] Start two instances of coordinator

Hello! 

I'm trying to start working with the checkpoint plugin. I read in the quick 
start that for each process I have to start a different coordinator, but when I 
try to do so I get an error message. 

This is what I'm doing: 
I open a terminal in the folder I want to work in and write: dmtcp_coordinator 
-i 10 --ckptdir 'pwd' 
There, in a new terminal, I'm going to launch one process. 
Then, I open a terminal in another folder where I want to run the other process 
and I run the same command. 
There, I got the error: "address already in use", this may be an old 
coordinator, etc. 

Obviously, I'm doing something wrong. Could anyone explain for beginners what's 
the correct way to use the coordinator? 

Thanks in advance!! 

Cheers, 
Marisel 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to