I can't seem to get mclapply to use more than a single core. I have a 64
core server running Linux.

Fore example:

library(parallel)

test <- lapply(1:100,function(x) rnorm(10000))
system.time(x <- lapply(test,function(x) loess.smooth(x,x)))
system.time(x <- mclapply(test,function(x) loess.smooth(x,x), mc.cores=32))

gives me:

   user  system elapsed
  0.000   0.000   7.441
   user  system elapsed
  0.000   0.000   8.868

i.e. mclapply is taking longer than lapply(). What is going wrong here?

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to