Help - Search - Members - Calendar
Full Version: Could It Be A Memory Leak?
Linuxhelp > Support > Technical Support
albustansintra
hello, Im pretty new to the linux scene, so bear with me please..

I have two athlon PC's running RH9 with full updates including latest kernel from up2date.
Both Pc's have what I consider to be an unusuall memory consumption!!

When I boot up, I run "top" and see that out of 754MB total physical RAM I have +- 200MB used, If I leave it for a couple of hours the used RAM aparently rised, because I do "top" again and have 452 or 500 MB used. That is with X running Gnome.
Its not a critical problem because the PC runs just fine, I havent noticed it rise over the 754MB mem use, but I find it strange because after a reboot its back to 200MB again and the running services are exactly the same.
I suspect that this could this be a memory leak? so I tried the memory profile program that comes with RH9, but never figure out how to use it properlly. Memory profile as it seems checks for leaks but (correct me if I'm wrong) you have to check process by process.
Does anybody know of memory leak detection programs that could detect which of my processes is causing the leak?
Or better yet, is it normal for RH9 to occupy my free RAM like it does on my PCs.
Don't hit me,.. Im still new at this unsure.gif

Any help or personal opinions welcome!
hughesjr
This is not a problem ... linux does it on purpose. It is mostly disk cache and other things that are low priority and will be dumped if the memory is required by something else ... here is my output:

CODE
22:21:52  up 2 days, 21:46,  2 users,  load average: 0.05, 0.05, 0.06
78 processes: 77 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
          total    1.5%    0.0%    0.0%   0.0%     0.0%    0.2%   98.1%
          cpu00    0.3%    0.0%    0.0%   0.0%     0.0%    0.0%   99.6%
          cpu01    4.7%    0.0%    0.0%   0.0%     0.0%    0.1%   95.0%
          cpu02    0.3%    0.0%    0.1%   0.0%     0.0%    0.0%   99.4%
          cpu03    0.7%    0.0%    0.0%   0.0%     0.0%    0.7%   98.4%
Mem:  1028464k av,  961384k used,   67080k free,       0k shrd,   99496k buff
                   379592k actv,  501196k in_d,   13548k in_c
Swap: 1052248k av,    0k used, 1052248k free                  716428k cached
albustansintra
Ok, then. That's good news.

I must admit, it sounds a a bit strange... But your output is very similar to mine, and the system runs just fine, never going over physical mem limit !
I was having a hard time understanding which processes were using up all the RAM. The sum of all my processes doesn't come close to the anounced memory use.

thanks alot, cheers!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.