QA: How should the numCoresToUse argument in rxOptions be used?

The numCoresToUse parameter in rxOptions allows users to take advantage of multiple cores on their system. The syntax is very simple. If your computer is outfitted with 4 cores, and you want to take advantage of the computational power of all 4 cores, type at the Rconsole: 

> rxOptions(numCoresToUse = 4) 
or 
> rxOptions(numCoresToUse = -1) 

This is only useful is when hyperthreading is turned on on your machine. Because hyperthreading can slow down numerical computations, we recommend setting 'numCorestoUse' to equal the number of actual cores on the computer to avoid this. 
First determine if hyperthreading is turned on. In the Windows Task Manager on the Performance page, there is a separate graph of CPU Usage History for every core the operating system detects. When hyperthreading is turned on, there will be twice as many of these as there are cores.
Users who do not wish to set numCoresToUse using rxOptions can also turn off hyperthreading, but we don't recommend doing this without the assistance of an IT professional.   
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 3104261 - Last Review: 10/29/2015 08:18:00 - Revision: 1.0

Revolution Analytics

  • KB3104261
Feedback