LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Memory leak in Linux kernel 2.6.28.10 (https://www.linuxquestions.org/questions/linux-kernel-70/memory-leak-in-linux-kernel-2-6-28-10-a-750109/)

kiran_4u 08-25-2009 09:01 AM

Memory leak in Linux kernel 2.6.28.10
 
we are using Linux Kernel 2.6.28.10 for mips Architecture in a embedded system.
We are facing memory leak when we run any application or even if we let the system idle.

I am trying various options to identify whether it is because of Kernel or Application/driver/uboot patches which we did porting from 2.6.15.4

I wrote the small program as following after reading the change log of 2.6.30.5 memory leak fix in fflush to identify whether it is because of fflush

Int main()
{
While(1)
{
fflush(stdout);
}
}

After running this program we are seeing memory leak ,within 3 mins memory is reduced from 31000k to 1800k. Once it reaches 1200k the memory is not reducing. we donno why ?

The same application when we run in 2.6.15.4 kernel there is no memory leak.

Is there any patches for kernel 2.6.28.10 which fixes this?

If the above fflush is not causing memory leak. i would like know why the memory is getting reduced after running this program.


Whether the Kernel 2.628.10 is having any memory leak in the kernel like i suspected above or any memory leak related to network or loopback or something.

Thanks in advance !

David1357 08-25-2009 12:50 PM

Quote:

Originally Posted by kiran_4u (Post 3656786)
I am trying various options to identify whether it is because of Kernel or Application/driver/uboot patches which we did porting from 2.6.15.4

You will probably have better luck posting your question to LKML. If there is a memory leak in the kernel, you want kernel developers helping you track it down.


All times are GMT -5. The time now is 11:39 PM.