Re: [OMPI users] openmpi realloc() holding onto memory when glibc doesn't

2007-08-23 Thread Tim Prins
Hi Josh, I am not an expert in this area of the code, but I'll give it a shot. (I assume you are using linux due to your email address) When using the memory manager (which is the default on linux), we wrap malloc/realloc/etc with ptmalloc2 (which is the same allocator used in glibc 2.3.x). W

Re: [OMPI users] openmpi realloc() holding onto memory when glibc doesn't

2007-08-23 Thread Josh Aune
I have found that the infiniserv MPI that comes with our IB software distribution tracks the same behaviour as gcc (releaseing memory on realloc). I have also found that building openmpi with --without-memory-manager makes openmpi track the same behaviour as glibc. I'm guessing that there is a b

[OMPI users] openmpi realloc() holding onto memory when glibc doesn't

2007-08-21 Thread Josh Aune
The realloc included with openmpi 1.2.3 is not releasing memory to the OS and is causing apps to go into swap. Attached is a little test program that shows calls to realloc not releasing the memory when compiled using mpicc, but when compiled directly with gcc (or icc) calling realloc() frees any