CPU idle usage

I recently noticed a problem with installing R / RStudio. When I open RStudio, the CPU usage in the activity monitor shows that the rsession and kernel_task processes hang by about 30% even when R is down and nothing is running. I know this is a very vague description of the problem, I hope someone here can give me directions on how to debug this problem or post more relevant information.

Thank.

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_2.15.2

      

+3


source to share


1 answer


If you are working on a specific Rstudio project and that project contains many files (hundreds or thousands), Rstudio may try to index the files -

I fixed it this way:



  • From the Rstudio IDE in the project,
  • Go to Tools

    Project Options

  • Now click on edit code
  • deselect Index R Source Files

  • close everything and restart Rstudio

edit

Index R Source Files

- determines whether R source files within the project directory will be indexed for code navigation (i.e. go to file / function, go to function definition). Usually this should remain, but if you have a project directory with thousands of files and are concerned about the overhead of monitoring and indexing them, you can turn off indexing here.
Insert spaces for tab

- Determine whether a tab inserts multiple spaces rather than a tab (soft tabs). Adjust the number of spaces for the soft tab.
Text encoding

- specify the default text encoding for source files. Note that source files that do not match the default encoding may still open correctly using the menu File : Reopen with Encoding

command. Source

+2


source







All Articles