Re: [R] Opening more than 1 R console in Windows

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 19 May 2008 07:39:11 +0100 (BST)

On Sun, 18 May 2008, Anh Tran wrote:

> Hi all,
>
> I recently found out that R does not utilize fully the Duo Core capability
> when you only run one instance of R.

How surprising was that? Do you have any programs that do? Very few Windows programs make effective use of multiple CPUs, and of those that do, they do not do so for the sort of tasks R is running routinely.

> I did some number crunching today and it seems that if I only open 1 R
> console, it uses 50% of my CPU (either 50-50 or 100-0 on 2 cores).
>
> Then, I open the second instance and divide the work into two parts, and run
> them parallelly, they seems to utilize 100% of my CPU.
>
> So, my question would be that: is the computing result the same if I do them
> this way? Will there any mistake compared to running only one instance at a
> time?

Running multiple instances of R simultaneously is very common practice. (Right now I have 14 instances running on an 8-core machine.) The only thing you need to watch is that you don't save the workspaces in the same place. So wither run them from different directories or (probably better) don't save the workspace.

>
> Thank you all.
>
> --
> Regards,
> Anh Tran
>
> [[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.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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.
Received on Mon 19 May 2008 - 06:45:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 May 2008 - 07:32:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive