My experience has been that I had trouble tracking memory usage by
R's built-in memory profiling tools (i.e. that TMB seemed to be
allocating memory in a way that R didn't track). I used
https://github.com/mrc-ide/memprof
to do memory benchmarking; I was able to see that the memory used by
the largest example I could run (i.e. the largest example that wouldn't
crash the R session) was close to the available memory on my system.
You can also watch the system monitor on your system (what it's
called will depend on your OS) and see what happens to memory use as
your program runs ...
> --
> To post to this group, send email to
us...@tmb-project.org. Before
> posting, please check the wiki and issuetracker at
https://github.com/
> kaskr/adcomp/ <
https://github.com/kaskr/adcomp/>. Please try to create a
> simple repeatable example to go with your question (e.g issues 154, 134,
> 51). Use the issuetracker to report bugs.
> ---
> You received this message because you are subscribed to the Google
> Groups "TMB Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
tmb-users+...@googlegroups.com <mailto:
tmb-
>
users+un...@googlegroups.com>.
> To view this discussion visit
https://groups.google.com/d/msgid/tmb-
> users/330c279c-09bb-49b0-9ad3-4ff775468d3an%
40googlegroups.com <https://
>
groups.google.com/d/msgid/tmb-
> users/330c279c-09bb-49b0-9ad3-4ff775468d3an%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.
--
Dr. Benjamin Bolker
Professor, Mathematics & Statistics and Biology, McMaster University
Associate chair (graduate), Mathematics & Statistics
Director, School of Computational Science and Engineering
* E-mail is sent at my convenience; I don't expect replies outside of
working hours.