[mythtv-users] BE (0.25) memory leak?

Gavin Hurlbut gjhurlbu at gmail.com
Tue Jul 3 22:05:27 UTC 2012

On Tue, Jul 3, 2012 at 2:50 PM, Gavin Whitehead
<gavin at alabastercranium.demon.co.uk> wrote:
>     VIRT    880m
>     RES     81m

>     VIRT    942m
>     RES     74m

>     VIRT    951m
>     RES     83m
> So that consumed ~340MB in 15 minutes.

How so?  your VIRT and RES numbers are saying there is no significant
growth in mythbackend at all.

Using "free memory" from free is not a good way to judge memory leaks
in a program.  This memory includes the buffer caches and other stuff
used by the kernel, which is almost assuredly where the memory usage
is.  As for actual memory used by mythbackend, you have shown nothing
that indicates that at all.  The Linux memory management system is
complex and confusing for most users.

> If I now stop and restart the BE I don't the memory back.  After the BE
> process has been stopped the free memory reported by top stays about the
> same.

Of course it is.  The kernel is keeping the memory for its buffers and caching.

I don't see a problem here.

More information about the mythtv-users mailing list