[Linux-HA] Memory Leak by crmd in 2.0.7
Andrew Beekhof
beekhof at gmail.com
Wed Feb 7 06:40:38 MST 2007
On 2/7/07, kisalay <kisalay at gmail.com> wrote:
> Hi,
>
> I have a 2.0.7 HA installed. The crmd process seems to continuosly leak
> memory.
> I am posting below the memory occupied by crmd:
>
> I started these observations after around 12 hours of crmd uptime.
> ElapsedTime(secs), VmSize, VmRSS
> 0, 1010872, 1008844
> 600, 1019172, 1017252
> 1200, 1027736, 1025704
> 1800, 1036160, 1034176
> 2400, 1044580, 1042624
> 3000, 1052992, 1050996
>
> the ouput from /proc is:
>
> 0931e000-56dac000 rw-p 0931e000 00:00 0 [heap]
> b7f47000-b7f4c000 rw-p b7f47000 00:00 0
> b7f53000-b7f55000 rw-p b7f53000 00:00 0
> bf907000-bf98c000 rw-p bf907000 00:00 0 [stack]
>
>
> after another 600 seconds:
>
> 0931e000-575c5000 rw-p 0931e000 00:00 0 [heap]
> b7f47000-b7f4c000 rw-p b7f47000 00:00 0
> b7f53000-b7f55000 rw-p b7f53000 00:00 0
> bf907000-bf98c000 rw-p bf907000 00:00 0 [stack]
>
>
> Is this memory leak inherent in crmd in 2.0.7 release. If so, is it fixed in
> the latest 2.0.8 release.
>
> I will vey much appreciate any help in this regard.
in the last day or so I've begun working on tracking down all the
memory leaks in the CRM (including the crmd). there are some noisy
leaks in Alan's messaging layer that make the task a little harder but
I have already been able to make some progress.
The most effective method, if you'd like to help, is to define
HA_TRACK_MALLOC in cl_malloc.h and add:
#ifdef HA_MALLOC_TRACK
cl_malloc_dump_allocated(LOG_ERR, FALSE);
#endif
just before the various processes exit. this will indicate who
created the remaining unfree'd memory.
running against the latest from http://hg.linux-ha.org/dev will also
make your (and my) life easier.
More information about the Linux-HA
mailing list