Re: [Rd] Re: [R] Memory Fragmentation in R

2005-02-19 Thread Nawaaz Ahmed
I am unclear what you actually did, but it may be a judicious gc() is all that was needed: otherwise the issues should be the same in the first and the subsequent run. That's not to say that when the trigger gets near the total address space we could not do better: and perhaps we should not le

Re: [Rd] Re: [R] Memory Fragmentation in R

2005-02-19 Thread Prof Brian Ripley
I am not the expert here (the author, Luke Tierney, is probably listening), but I understood you to have done a gc() immediately before your second run: you presented statistics from it. If so, then I don't understand in detail. Probably Luke does. That's good general advice: clear out result

Re: [Rd] Re: [R] Memory Fragmentation in R

2005-02-19 Thread Luke Tierney
On Sat, 19 Feb 2005, Nawaaz Ahmed wrote: Thanks Brian. I looked at the code (memory.c) after I sent out the first email and noticed the malloc() call that you mention in your reply. Looking into this code suggested a possible scenario where R would fail in malloc() even if it had enough free heap