Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-25-2009, 09:01 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Thumbs up Memory leak in Linux kernel

we are using Linux Kernel 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

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

Int main()

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 kernel there is no memory leak.

Is there any patches for kernel 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 !
Old 08-25-2009, 12:50 PM   #2
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Originally Posted by kiran_4u View Post
I am trying various options to identify whether it is because of Kernel or Application/driver/uboot patches which we did porting from
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.


leak, memory

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool to identify memory leak in loadable kernel module appas Programming 3 06-05-2012 09:56 AM
Memory / Kernel leak? Snipersnest Linux - Newbie 11 02-08-2005 04:10 PM
Memory leak in linux routers abirami Linux - Networking 1 11-08-2004 02:04 PM
kernel memory leak? linux7 Linux - General 1 10-16-2004 11:48 AM

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration