LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-20-2002, 07:13 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 32
Memory usage too high


I'm having a memory usage problem on my Red Hat 7.3 system using KDE 3.0.

From a fresh boot, my system has very little memory in use. But, as the days go on, the memory usage climbs higher and higher. I've tried logging out and restarting the X-Server, to no avail. The only solution seems to be a reboot.

Here is a pic of top, sorted by memory usage. This is after only 3 days of up time:



Notice the 363204K memory in use. Notice all of the kdeinits taking up a lot of memory.

Here is a pic of top right after a fresh boot, sorted by memory usage.



Notice only 161368K memory in use. Notice that the kdeinits are not taking up a lot of memory.

Last edited by glock19; 05-20-2002 at 07:26 PM.
 
Old 05-20-2002, 07:37 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I am not a kde wizard but i think kdeinit is used to startup kde and kde apps within it.
 
Old 05-20-2002, 07:38 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
As your machine runs Linux will fill the cache with items it thinks are useful. This is a good thing - free memory is a waste. In the one picture you show Linux is using almost 100M for the cache. As memory is needed the cache will be freed. As long as you are not hitting swap you are fine.

--jeremy
 
Old 05-20-2002, 09:21 PM   #4
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
I'm not referring to the cache. If you look at the "Mem:" line, it says "363204K used". Why is it using that much memory, with only two applications open? When the system is first started up, it says "161368K used" (See the second screenshot). That's almost twice as much usage, with the same amount of applications loaded (only 3 apps loaded for both screenshots).
 
Old 05-20-2002, 09:42 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What jeremy is trying to say is that linux uses up memory, usually will fill up anything it might think is useful. unlike windows which doesn't fill up and use all the memory that is there, linux will use this to its advantage. most likely in your case its not just loading those two programs but anything else that might be useful to your system.

don't worry, its normal. if you swap file ever gets filled up, then start worrying..
 
Old 05-20-2002, 09:52 PM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
From the looks of the image you attached almost 130M is going towards buffers and cache. To be honest I do not use KDE and don't know what kdeinit does, but it is taking up a huge amount of memory - wouldn't know if that is normal though. You should not have hit swap with that much cache however. Was your free RAM ever totally exhusted? May have to do some VM tuning if you are worried.

--jeremy
 
Old 05-20-2002, 10:12 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
RedHat for one is going to try to use as much memory as it can to make things run better. Like it's already been said the memory is not actually used up.


For a much better look at what's really going on here try this


cat /proc/meminfo


typically about one half up to one third of the memory shown as not free is being used. The rest is used for cache and buffer

Last edited by DavidPhillips; 05-20-2002 at 10:13 PM.
 
Old 06-05-2003, 07:05 AM   #8
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
I see what you guys are saying, but this is indeed a problem, as all the kdeinits chowing memory are slowing the system down significantly.

This is not just simple caching or buffering, something is wrong here, there is a memory leak somewhere.
 
  


Reply



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
High memory usage Kapriel Debian 6 07-29-2005 11:01 AM
High memory usage? Davus Linux - General 6 11-28-2004 02:33 AM
High memory usage on Slack 10 lil_drummaboy Slackware 3 11-26-2004 05:47 PM
high memory usage. nexx_au Fedora 2 12-08-2003 03:41 AM
VERY high memory usage.....Normal? bison42 Linux - Newbie 4 08-23-2001 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:04 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
Open Source Consulting | Domain Registration