[R] memory use without running gc()

jim holtman jholtman at gmail.com
Fri Aug 6 19:57:11 CEST 2010


?memory.size

On Fri, Aug 6, 2010 at 1:00 PM, Johann Hibschman <jhibschman at gmail.com> wrote:
> Is there any way to get the current memory used by R without running
> gc()?
>
> I'd like to include the memory usage in logging output, but calling gc()
> to get that information takes long enough to be noticeable (~ 6 s with ~
> 20 GB of ram in use), which goes against the point of logging.
>
> Thanks,
> Johann
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list