[R-SIG-Mac] kernel_task uses all memory with foreach()
Ben Bond-Lamberty
bpbond at gmail.com
Tue Aug 26 12:14:24 CEST 2014
It seems unlikely that the problem is with kernel_task; I and many
others have used foreach() extensively without a problem. Total guess:
you're testing and running your code repeatedly, and in doing so,
pausing but not killing the child processes. These are accumulating,
and consuming system resources.
Best would be to post a reproducible example, if possible.
Ben
On Mon, Aug 25, 2014 at 3:27 AM, Thomas Tse, CFA FRM
<thomas.tse at standardperpetual.com> wrote:
> Hello,
>
> I'm trying to use foreach() in my iMac (identifier iMac14,3) but it comes out a "your system has run out of application memory" issue.
>
> After taking a look into Activity Monitor, I see that "kernel_task" keeps consuming memory until it uses all RAM. I use a lot of gc() within foreach() so that each R session is not taking a lot of memories ... the problem seems to be with kernel_task, which does not release RAM.
>
> Anyone could suggest a solution?
>
> Many thanks,
> Tom
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list