Subject: Re: Memory leak problem

From: robin <[email-masked]>
Date: Thu, 10 Feb 2005 15:16:58 +0530

Hi thanks for your reply..

I am attaching the kernel config file. the kernel version is kernel 2.4.20.
The processor we are using is MPC852T.

Am i correct in my conclusion that the software restart(killing and 
restarting)  without kernel reboot does free all resources used by the 
software including memory??

thanks in advance

On Thursday 10 Feb 2005 1:10 pm, you wrote:
> On Thursday 10 February 2005 07:07, robin wrote:
> > Hi
> > We have an application running on  denx linux kernel 2.4.20.
> >
> > Apparently there is a memory leak that we are not able to find.
> > The application is giving out of memory error. Even if we restart
> > the application without rebooting the kernel, (killing all application
> > processes and restarting), it gives the same out of memory error.
> > Rebooting the kernel solves the problem.
> >
> > It seems that the memory leak is not at the application level
> > 'cos restarting the application doesnt solve the problem..
> >
> > 1. Any ideas where I should look for the leak??
>
> Check /proc/slabinfo and see if there are some "supicious" buffer,
> that only increase and never decrease. From the kind of buffer
> showing this behaviour you might find out where to dig...
> Check it before running the application and afterwards.
>
> > 2. Is there any known memory leak problems with the kernel??
>
> There are enough places, where a kernel could leak, but in general
> such leaks in the main part are detected really fast. Undiscovered
> leaks are often found in the drivers itself.
>
> What's your kernel config?
> Which HW are you using?
> What does this application?
>
> Ciao,
> Gerhard

-- 
Nvidia driver loaded - bugs to nvidia. vmware loaded bugs to vmware,
both loaded, god help you, nobody else will

	- Alan Cox explaining where to send bug reports for binary-only drivers