Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
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.
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).
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..
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.