inotifyd - possible memory leak?

Denys Vlasenko vda.linux at googlemail.com
Wed Nov 18 09:35:46 UTC 2009


On Tue, Nov 17, 2009 at 5:25 PM, Piotr Grudzinski <piotr at powersmiths.com> wrote:
>>> >> With bb-1.15.2 my system looses 40K to 52K of RAM as reported by the
>>> >> >> free
>>> >> command.
>>> >
>>> > Loses 40K to 52K per what period of time? Memory leak is characterized
>>> > by unlimited growth of used memory, not by fixed amount.
>>>
>>> In my case, the above sequence of 3 inotifyd is triggered every 5 minute;
>>> and every 5 minutes an additional 40 to 52K of RAM is lost.
>>
>> Understood.
>> Did you check that no processes are created and left running
>> by every event? 50K is about right for, say, additional "sleep 9999"
>> process.
>
> There are no processes (visible with the ps command) left running.
>
>>> >> bb-1.13.1 looses nothing. The problem seems to be related to bb-1.15.2
>>> >> I am running hush shell.
>>> >
>>> > 1.13.1 - 1.15.2 interval is large.
>>> > Can you narrow it down more?
>>>
>>> Would you suggest any particular release?
>>
>> 1.14.4
>
> With 1.14.4 I can see free RAM going down in 40 to 56K chunks.

Do you see inotifyd RSS going up, or some other process?

Try 1.13.4, 1.14.0, 1.14.1, 1.14.2, 1.14.3 and let us know
at which version it started.

--
vda


More information about the busybox mailing list