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
<[email protected]> 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
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to