[R] R on a multi core unix box

Luke Tierney luke at stat.uiowa.edu
Fri Dec 7 00:42:11 CET 2007


You can use the socket implementation of snow, with

     library(snow)
     cl <- makeCluster(rep("localhost", 2), type="SOCK")

to start up a cluster of 2 R processes.

luke

On Thu, 6 Dec 2007, Saeed Abu Nimeh wrote:

> Hi,
> I installed the snow package on a unix box that has multiple cores. To be
> able to exploit the multiple cores (on one pc) do I still need to install
> the rmpi package (or rpvm). Another question, if i run a bayesian simulation
> on the multiple core after setting them up correctly (using snow), would you
> think there will be a noticeable speedup gain.
> Thanks,
> Saeed
> ---
>
> linux centos
> 4 dual core processors
> 32 gb ram
> R (2.6.0)
> snow 0.29
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:      luke at stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



More information about the R-help mailing list