Hello,
This is the first time I post here. I have found an error on the last 2 versions of Rstudio in my machine. I am running a simple vectorised for loop using the future_map() function from package furrr, which uses the future package. I have used this function many times and I have always had a good performance. However, when I try to execute any task in parallel (I have tried different scripts), the computer is not using all cores. Instead, it runs with 20% of the CPU and just 0.8 GHz (my processor goes up to nearly 5 GHz). Sometimes during the computation the usage goes up to 70% and the speed is just around 1.3 GHz. Then it comes back to 20%. I have tried using clusterApply() instead of future_map() and the execution is exactly the same.
I am running RStudio/2023.06.0+421 with R 4.3.0 "Already tomorrow" in a DELL Precision 5570 with Windows 10 Pro
|Processor|12th Gen Intel(R) Core(TM) i9-12900H 2.50 GHz|
|Installed RAM|64.0 GB (63.7 GB usable)|
|System type|64-bit operating system, x64-based processor|
I have all packages up to date and the sessionInfo() is the following:
R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.utf8 LC_CTYPE=Spanish_Spain.utf8 LC_MONETARY=Spanish_Spain.utf8 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.utf8
time zone: Europe/Paris
tzcode source: internal
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] furrr_0.3.1 future_1.32.0 mgsub_1.7.3 graphite_1.46.0 ROntoTools_2.28.0 Rgraphviz_2.44.0 KEGGgraph_1.60.0
[8] KEGGREST_1.40.0 boot_1.3-28.1 graph_1.78.0 BiocGenerics_0.46.0 lubridate_1.9.2 forcats_1.0.0 stringr_1.5.0
[15] dplyr_1.1.2 purrr_1.0.1 readr_2.1.4 tidyr_1.3.0 tibble_3.2.1 ggplot2_3.4.2 tidyverse_2.0.0
loaded via a namespace (and not attached):
[1] gtable_0.3.3 Biobase_2.60.0 tzdb_0.3.0 vctrs_0.6.2 tools_4.3.0 bitops_1.0-7
[7] generics_0.1.3 stats4_4.3.0 parallel_4.3.0 fansi_1.0.4 AnnotationDbi_1.62.1 RSQLite_2.3.1
[13] blob_1.2.4 pkgconfig_2.0.3 S4Vectors_0.38.1 lifecycle_1.0.3 GenomeInfoDbData_1.2.10 compiler_4.3.0
[19] Biostrings_2.68.0 munsell_0.5.0 codetools_0.2-19 GenomeInfoDb_1.36.0 RCurl_1.98-1.12 pillar_1.9.0
[25] crayon_1.5.2 cachem_1.0.8 org.Hs.eg.db_3.17.0 parallelly_1.35.0 digest_0.6.31 tidyselect_1.2.0
[31] stringi_1.7.12 listenv_0.9.0 fastmap_1.1.1 colorspace_2.1-0 cli_3.6.1 magrittr_2.0.3
[37] XML_3.99-0.14 utf8_1.2.3 withr_2.5.0 rappdirs_0.3.3 scales_1.2.1 bit64_4.0.5
[43] timechange_0.2.0 XVector_0.40.0 httr_1.4.6 globals_0.16.2 bit_4.0.5 png_0.1-8
[49] hms_1.1.3 memoise_2.0.1 IRanges_2.34.0 rlang_1.1.1 glue_1.6.2 DBI_1.1.3
[55] rstudioapi_0.14 R6_2.5.1 zlibbioc_1.46.0
Anyone knows what is this about?
Thank you very much for your help,
Jorge