[R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Peter Waltman
Hi - Admittedly, this may not be the most sophisticated memory profiling performed, but when using unix's top command, I'm noticing a notable memory leak when using R with a large matrix that has dimnames set. To allow people to reproduce the problem I'm seeing, I've

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Seth Falcon
Hi Peter, Peter Waltman [EMAIL PROTECTED] writes: Admittedly, this may not be the most sophisticated memory profiling performed, but when using unix's top command, I'm noticing a notable memory leak when using R with a large matrix that has dimnames set. I'm not sure I

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Peter Waltman
Hi Seth - Thanks for the follow up. I'll definitely check out the devel version at some point since while I've come up with a workaround, this is causing problems for me as it uses up so much memory on some systems that R starts throwing malloc errors and has to be killed from the command

Re: [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Luke Tierney
Seth's analysis is correct. R does return what it can to the malloc system by calling free. When and how much memory malloc releases back to the OS varies with OS and malloc system and also depends on the sizes of allocations. R curently allocates its memory for small objects in pages of about