[Rcpp-devel] RcppArmadillo Memory Leak?

Hadley Wickham h.wickham at gmail.com
Mon Nov 18 15:24:03 CET 2013


> After every call, the memory from gc() is stable, while rsession process
> memory keeps growing of around 100Mb at each call and doesn't decrease after
> the garbage collection.

You don't mention how you're determining the size of the rsession
process, but you shouldn't necessarily expect it to decrease after
calling gc() - there may be memory fragmentation, but also the OS is
lazy about reclaiming memory from processes, so it may only be
returned to the OS when it actually needs it.

Hadley

-- 
Chief Scientist, RStudio
http://had.co.nz/


More information about the Rcpp-devel mailing list