Re: [Rd] gc()$Vcells < 0 (PR#9345)

From: Vladimir Dergachev <vdergachev_at_rcgardis.com>
Date: Mon 06 Nov 2006 - 23:44:23 GMT

On Monday 06 November 2006 6:12 pm, dmaszle@mendelbio.com wrote:
> version.string Version 2.3.0 (2006-04-24)
>
> > x<-matrix(nrow=44000,ncol=48000)
> > y<-matrix(nrow=44000,ncol=48000)
> > z<-matrix(nrow=44000,ncol=48000)
> > gc()
>
> used (Mb) gc trigger (Mb) max used (Mb)
> Ncells 177801 9.5 407500 21.8 350000 18.7
> Vcells -1126881981 24170.6 NA 24173.4 NA 24170.6
>

Happens to me with versions 2.40 and 2.3.1. The culprit is this line in src/main/memory.c:

    INTEGER(value)[1] = R_VSize - VHEAP_FREE();

Since the amount used is greater than 4G and INTEGER is 32bit long (even on 64 bit machines) this returns (harmless) nonsense.

The megabyte value nearby is correct and gc trigger and max used fields are marked as NA already.

                          best

                             Vladimir Dergachev

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Nov 07 10:48:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 07 Nov 2006 - 12:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.