Re: [R] foreach/dopar's processes accumulate RAM

2014-10-30 Thread Jeff Newmiller
Don't know the answer, partly because you have not shown enough of your code. The reason small, reproducible examples are specified in the footer and Posting Guide is to avoid this problem. AFAIK all of the parallel processing libraries in R re-use the child processes, so garbage collection coul

[R] foreach/dopar's processes accumulate RAM

2014-10-29 Thread Alexander Engelhardt
Hello all, I have a triple nested loop in R like this: all <- list() for(a in A){ all[[a]] <- list() for(b in B){ all[[a]][[b]] <- foreach(c=C, .combine=rbind) %dopar% { ## I'm leaving out some preprocessing here this_GAM <- gam(formula, data=data, family=