On Mon, 2013-09-16 at 22:42 +0200, Maria Rodrigo wrote:
> Dear Håvard,
>
>
> Thank you very much for your reply. I have been making some tests and
> I believe the problem is the memory usage. I think this might explain
> why it works fine in Windows but not in Linux.
>
>
> I can see (using top) that the memory used keeps growing and growing,
> and that it is not released to the operating system even when I delete
> all the variables, the only solution is to re-start R and I'm not too
> happy about that... Would you know of any way to limit the memory
> usage or release the memory back to the operating system?
>
>
> I have been able to reproduce the error using your Epil dataset
> thousands of times, I attach the code. In my 32Gb server, it stops
> after about 16000 iterations.
>
>
> I am using the latest (stable) INLA version, I don't assume using the
> testing version would help with this, right? The output of
> sessionInfo() is the same as last time.
Hi
there is a new stable version out, but this would not fix this issue.
using R as you do in the example, you'll need to store all the results
in the 'apply' call, which will just use more and more mem. you can
follow the progress also with
gc()
which will also 'clean up'.
do you really need to store all the 'result' or can you just extract
from them what you need and return only that?
Best
H
--
Håvard Rue
he...@r-inla.org