LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 08-25-2009, 10:01 AM   #1
kiran_4u
LQ Newbie
 
Registered: Jul 2009
Posts: 1
Thanked: 0
Thumbs up Memory leak in Linux kernel 2.6.28.10


[Log in to get rid of this advertisement]
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 !
windows_xp_2003 kiran_4u is offline  
Tag This Post , , ,
Reply With Quote
Old 08-25-2009, 01:50 PM   #2
David1357
Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 938
Blog Entries: 1
Thanked: 27
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.
windows_xp_2003 David1357 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Memory / Kernel leak? Snipersnest Linux - Newbie 11 02-08-2005 05:10 PM
Memory leak in linux routers abirami Linux - Networking 1 11-08-2004 03:04 PM
kernel memory leak? linux7 Linux - General 1 10-16-2004 12:48 PM
Tool to identify memory leak in loadable kernel module appas Programming 2 08-16-2004 08:50 AM


All times are GMT -5. The time now is 11:57 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration