LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

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

Rep: Reputation: 0
Thumbs up 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 !
 
Old 08-25-2009, 12:50 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
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 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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:07 AM.

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