Skip to content
Prev 500 / 2152 Next

snow/snowfall: advantages of MPI over the socket method?

Also, suppose I execute R instances of RMPISNOW via mpirun on a node
(something along the line of "mpirun -np3 --host myhost RMPISNOW).
using "ps augx", i see that there are 2 R instances started (not
including the master process).  In RMPISNOW, executing sfInit(cpus=2,
parallel=TRUE, type="MPI") opens two more.  The following is a snippet
from ps augx:

vqnguyen 12481 97.2  0.4 315320 71108 ?        R    16:24   0:49
/apps/R/2.10.0/lib64/R/bin/exec/R --slave --no-restore
--file=/apps/R/2.10.0/lib64/R/library/snow/RMPInode.R --args
SNOWLIB=/apps/R/2.10.0/lib64/R/library OUT=/dev/null
vqnguyen 12480 97.2  0.4 313088 68872 ?        R    16:24   0:49
/apps/R/2.10.0/lib64/R/bin/exec/R --slave --no-restore
--file=/apps/R/2.10.0/lib64/R/library/snow/RMPInode.R --args
SNOWLIB=/apps/R/2.10.0/lib64/R/library OUT=/dev/null
vqnguyen 12467 74.6  0.1 258704 29844 ?        S    16:22   2:33
/apps/R/2.10.0/lib64/R/bin/exec/R --no-save
vqnguyen 12470 74.6  0.1 258700 29844 ?        S    16:22   2:33
/apps/R/2.10.0/lib64/R/bin/exec/R --no-save

The first two are spawned after sfInit() is ran.

Is this how things should look like?  I was expecting only two slaves.
 Can anyone confirm?  Thanks.

Vinh
On Wed, Jan 6, 2010 at 3:22 PM, Vinh Nguyen <vqnguyen at uci.edu> wrote: