[R] maximizing available memory under windows XP

From: roger bos <roger.bos_at_gmail.com>
Date: Fri 27 Jan 2006 - 01:02:59 EST


I have always been using ebitbin to set the 3GB switch in the windows binary, but version 2.2.1 has this set as default (which I verified using dumpbin). However, when I generate junk data to fill up my memory and read the memory usage using gc(), it seems that I am not getting as good results with 2.2.1 patched as I was with 2.2.0 after I edited the header. Under R 2.2.0 I was able to use over 2GB and with R 2.2.1 patched I can access only 1GB. Anyone have any suggestions that I can try. My machine has 4GB and I have modified the Boot.ini file.

Thanks,

Roger

Here is the gc() on 2.2.1 patched:
> gc()

           used  (Mb) gc trigger   (Mb)  max used   (Mb)
Ncells   252021   6.8     467875   12.5    379294   10.2
Vcells 71097226 542.5 140857919 1074.7 140597245 1072.7
>

Here is the gc() output on 2.2.0 after I edited the header:
> gc()

            used  (Mb) gc trigger   (Mb)  max used   (Mb)
Ncells    174118   4.7     350000    9.4    350000    9.4
Vcells 130065529 992.4 257820332 1967.1 257565551 1965.1
>

Here is the code that I used to fill my memory (nothing fancy): a <- diag(1000)
b <-a
for (i in 1:1000000) {
a<- diag(1000)
b <- rbind(b,a)

}
gc()

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jan 27 01:12:18 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:12 EST