LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-09-2004, 05:02 PM   #1
linux7
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Question kernel memory leak?


hello
i am running linux 2.6.5 with a few patches (e.g. lids) ~ 70 days uptime.
a few days ago i noticed system slowdown and high memory usage. i came down to runlevel 1 and noticed, that almost all my memory is consumed. a few logs:
ps aux
Code:
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  1368  376 ?        S    Jul26   0:20 init [S]  
root         2  0.0  0.0     0    0 ?        SWN  Jul26   0:00 [ksoftirqd/0]
root         3  0.0  0.0     0    0 ?        SW<  Jul26   0:41 [events/0]
root         4  0.0  0.0     0    0 ?        SW<  Jul26   0:27 [kblockd/0]
root         5  0.0  0.0     0    0 ?        SW   Jul26   0:00 [khubd]
root         9  0.0  0.0     0    0 ?        SW<  Jul26   0:00 [aio/0]
root         8  0.0  0.0     0    0 ?        SW   Jul26  36:27 [kswapd0]
root        10  0.0  0.0     0    0 ?        SW   Jul26   0:00 [jfsIO]
root        11  0.0  0.0     0    0 ?        SW   Jul26   0:00 [jfsCommit]
root        12  0.0  0.0     0    0 ?        SW   Jul26   0:00 [jfsSync]
root        13  0.0  0.0     0    0 ?        SW<  Jul26   0:00 [xfslogd/0]
root        14  0.0  0.0     0    0 ?        SW<  Jul26   0:00 [xfsdatad/0]
root        15  0.0  0.0     0    0 ?        SW   Jul26   0:02 [xfsbufd]
root        16  0.0  0.0     0    0 ?        SW   Jul26   0:00 [kseriod]
root        17  0.0  0.0     0    0 ?        SW   Jul26   1:40 [kjournald]
root       127  0.0  0.0     0    0 ?        SW   Jul26   0:00 [kjournald]
root       128  0.0  0.0     0    0 ?        SW   Jul26   3:28 [kjournald]
root      1007  0.0  0.0     0    0 ?        SW   Jul26   0:03 [kjournald]
user001   1766  0.0  0.0     0    0 ?        ZN   Sep11   0:00 [wine-kthread] <defunct>
root     25385  0.0  0.0     0    0 ?        SW   Oct02   0:00 [pdflush]
root     13579  0.0  0.0     0    0 ?        SW   Oct08   0:00 [pdflush]
root     23506  0.0  0.1  1272  384 ?        S    14:55   0:00 minilogd
root     23633  0.0  0.1  1368  412 tty2     S    14:55   0:00 init [S]  
root     23634  0.0  0.3  1948 1164 tty2     S    14:55   0:00 bash
root     23881  0.0  0.2  2140  720 tty2     R    14:58   0:00 ps aux
free
Code:
             total       used       free     shared    buffers     cached
Mem:        352720     345476       7244          0       4872      21560
-/+ buffers/cache:     319044      33676
Swap:       262128        460     261668
ipcs
Code:
------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x50494f4e 401276929  user001   666        2016       0                       

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
vmstat
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0    368   7324   4972  21608    2    1     3     1    5     6 88  6  6  0
lsmod
Code:
Module                  Size  Used by
dm_mod                 36032  2
as you can see free memory is about 32M, including buffers and cache. i can hardly run more than one application at a time (and with swap turned on) - previously i run plenty of apps (evolution, wine, opera, firefox etc.)
the memory IS NOT used for cache. it's just 'gone'.
more - wine-kthread's parent is 1 (init), here's the line from ps -efw
Code:
1 Z user001   1766     1  0  99  19 -     0 exit   Sep11 ?        00:00:00 [wine-kthread] <defunct>
and the process is in zombie state...
is there any possibility (except reboot) to trace down the problem and get leaked memory back? system is still on, so i can give additional info...
 
Old 10-16-2004, 12:48 PM   #2
linux7
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Re: kernel memory leak?

Quote:
Originally posted by linux7
system is still on
from now it is not true anymore
i didn't find solution, so i've had to reboot
 
  


Reply


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 On
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 10:56 AM
Memory / Kernel leak? Snipersnest Linux - Newbie 11 02-08-2005 05:10 PM
memory leak mfitzpat Linux - Newbie 1 09-24-2004 03:58 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 10:39 AM
Memory Leak? eLinux Linux - General 2 09-20-2003 10:21 PM


All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
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