[R] CPU usage while running R code

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Jul 4 15:31:53 CEST 2012


R does not parallelize its operation automatically... you have to use R code that splits the work you give it into multiple tasks.

See ?parallel
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Franckx Laurent <laurent.franckx at vito.be> wrote:

>I am currently running an R program on a computer with 16 Gb memory
>(Windows7, 64 bit). When I look at the task manager, I see that only 4
>out of the 8 CPUs are being used. Is this due to some missing in the R
>code, or should I change something to the settings of the computer?
>
>
>Laurent Franckx, PhD
>Expert
>VITO NV
>Boeretang 200, 2400 MOL, Belgium
>Tel. + 32 14 33 58 22
>Skype: laurent.franckx
>laurent.franckx at vito.be
>Visit our website: www.vito.be/english and http://www.vito.be/transport
>
>
>
>
>
>
>
>http://www.vito.be/e-maildisclaimer
>
>______________________________________________
>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.



More information about the R-help mailing list