On Jul 26, 2007, at 6:55 AM, Maureen O Flynn wrote:
> My question is:
> Can I set it with a simple value, say 2097152? eg.
>
> $mpirun -ssi rpi tcp -ssi rpi_tcp_sockbuf 2097152 N <exec>
Yes. However, the Linux kernel has some built-in buffer limits such
that this large number many not be fully observed. I don't know what
those limits are offhand -- you may need to google around.
> Or: does this mean I am instead to use code to set setsockopt(),
> and just set it to 0 rather than default '-1' eg.
>
> $mpirun -ssi rpi tcp -ssi rpi_tcp_sockbuf 0 N <exec>
>
> If I need to do this do I put the setsockopt() code in
> my executable?
No, you wouldn't do this because you don't have access to the fd's
for the sockets (they're hidden within the MPI library).
--
Jeff Squyres
Cisco Systems
|