Thanks again Hugo,
2011/1/19 Hugo Mildenberger :
> Dear Mauricio,
>
> what I do not understand at all is the message:
>
>> Error: cannot allocate vector of size 476.2 Mb
>
> Have you tried to allocate a big matrix in between, whith
> the R - statement not being shown in the output?
If I understoo
Dear Mauricio,
what I do not understand at all is the message:
> Error: cannot allocate vector of size 476.2 Mb
Have you tried to allocate a big matrix in between, whith
the R - statement not being shown in the output? Probably
not. If not, your local R version is buggy for sure. The test shows
Dear Hugo,
I tried your memory test program (without further modifications) just
after the gc() command:
print(gc())
print(gcinfo(TRUE))
system("/mypath/memorytest.out")
and the result that I got was:
Number of simulations read from ' Particles.txt ' : 9000
-
> I got the following warning:
> memorytest.c: In function ‘main’:
> memorytest.c:5: warning: return type of ‘main’ is not ‘int’
> Is this important ?
Hello Mauricio,
No, your gcc version is unduly puristic here. The traditional return
type of the main function in "C" should be "int", and i
Thank you very much Hugo for your answer.
Yesterday I was out of my office and I couldn't test the advise you
gave me. Today I'll do it.
I have never used C, so I have to ask.
For creating an executable file with your code, I copied and pasted
the text into a text file, and then tried from the
Mauricio,
I tried your matrix allocation on Gentoo-hardened 32 and
64 bit systems. Both work ok, using R-2.11.1 and R-2.12.2 respectively,
and both use a recent 2.6.36 kernel revision.
This is from the 32 bit system with 512 MB physical memory:
>system("free")
total
Following the advice a colleague, I put the gc() and gcinfo(TRUE)
commands just before the line I got the problem, and their output
were:
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 471485 12.61704095 45.6 7920371 211.5
Vcells 6408885 48.9 113919753 869.2 34765159
Thanks for your answer Martin, but -unfortunately- the decision about
installing a 32 bits OS in the 64 bits machine, was taken by the IT
guys of my work and not by me.
By the way, due to strong limitations about software installation in
my work place, this problem didn't happen in Ubuntu, but in
> "MZ" == Mauricio Zambrano
> on Mon, 17 Jan 2011 11:46:44 +0100 writes:
MZ> Dear R community,
MZ> I'm running R 32 bits in a 64-bits machine (with 16Gb of Ram) using a
MZ> PAE kernel, as you can see here:
MZ> $ uname -a
MZ> Linux mymachine 2.6.18-238.el5PAE #1 SM
Dear R community,
I'm running R 32 bits in a 64-bits machine (with 16Gb of Ram) using a
PAE kernel, as you can see here:
$ uname -a
Linux mymachine 2.6.18-238.el5PAE #1 SMP Sun Dec 19 14:42:44 EST 2010
i686 i686 i386 GNU/Linux
When I try to create a large matrix ( Q.obs <- matrix(NA, nrow=6940,
10 matches
Mail list logo