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

Re: [bgl-discuss] Interactive use of BGL



Hi,


CNK libc provides sockets-related system calls.
I was able to link my small socket program with CNK libc.
But seems it didn't send packet although no compilation error
and no runtime error. I'll check it later.


There is another technique to create a socket from CNK
which Rob Ross posted to this ML before.
I didn't try but I think it should work.

-----
Below is cut&paste from Rob's post.
-----

FYI, discussion with IBM person about running things on IOnodes and 
connecting to them.

I have successfully created a TCP socket from a compute node and connected 
to a process on the login node (the sshd in this case).  I'm currently 
working on hacking netpipe to allow me to test the bandwidth of this 
connection, which Pete has named the "colon hack" because of the format of 
the fake filename.  This is how it works:

---

#include <fcntl.h>

int main(int argc, char **argv)
{
        int i;

        i = open("tcp://172.30.1.101:22", O_RDWR);
        printf("open returned %d\n", i);
        if (i < 0) {
                perror("open");
        }

        if (i >= 0) sleep(10);

        return 0;
}

---

<Feb  8 14:54:11> MPIRUN (Info) : Job started successfully
<Feb  8 14:54:11> MPIRUN (Info) : Waiting for job to terminate...
0: open returned 3
<Feb  8 14:54:41> MPIRUN (Info) : Job 1246 switched to state 
RM_JOB_TERMINATED ('T')
<Feb  8 14:54:41> MPIRUN (Info) : Job successfully terminated

---

/home/rross> netstat -tan | grep ":22" | grep "172.30.1.101"
tcp        0      0 172.30.1.101:22         172.30.1.100:1022 ESTABLISHED 
tcp        0      0 172.30.1.101:22         172.30.1.20:32768 ESTABLISHED 
/home/rross>

---

I'll report back more when I have the netpipe working...

Rob



> There is __NR_socket system call in BLRTS...
> --andrew
>
> On May 16, 2005, at 12:39 PM, Chad Glendenin wrote:
>
>> Has anybody experimented with using bgl interactively? Are there any
>> resources on this topic?
>>
>> Is it possible to communicate directly with a running job over a network
>> socket?
>>
>> Thanks,
>> ccg
>>
>> - --------------------------------------------------------------------
>> To add or remove yourself from this mailing list, use the 'notifyme'
>> command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.
>
>
> - --------------------------------------------------------------------
> To add or remove yourself from this mailing list, use the 'notifyme'
> command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.
>

- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.