LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Maureen O Flynn (maureen.oflynn_at_[hidden])
Date: 2007-06-30 15:13:01


hello,

I have a question about changing tcp socket sizes
with 'rpi_tcp_sockbuf'
at run time, the user guide says that if it is not the default value
of '-1' then I can set the socket parameter to 0 instead with:

$ mpirun -ssi rpi_tcp_sockbuf 0 N <executable name>

Note that in my program I set the send and receive socket buffers
with the setsockopt(2) function as follows setting size to 131072.
 
          int val = 131072;
     sock = socket( PF_INET, SOCK_STREAM, 0 );
            ierr_setsock = setsockopt(sock,0, SO_SNDBUF, &val,
131072) ;
            ierr_setsock2 = setsockopt(sock,0, SO_RCVBUF, &val,
131072) ;

Is this correct? I am not sure it works as my performance figures
dont indicate any change so perhaps they are not being resized at
all. Any suggestions regarding how to do this would be great.

Also - what is the rpi_tcp_priority for? Can it be changed?
Is the shared memory parameter used with tcp collective communications
across several nodes? If so would it be useful to tune it?

thanks.