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.
Here is a screen print from TOP. I have no gui running. I have squid and lotus domino running and thats about it. Why is this hoging up all the memory?
I cant right now as I had to ssh to get that. I am not at the site. I'll be by there later today so I check then. Nothing was really running. Domino was using about 10% mem and other than that everything was a sleep.
The quick and easy answer is to tell you not to worry about it because nothing is really hogging up all your memory.
The more in depth answer has to do with the way Linux does memory management.
When a program executes it gets allocated a certain amount of memory (based on a verity of things calculated at compile time). The kernel typically actually allocates it more then it asks for (never less). As time goes on programs tend to grow (aka dynamically allocated memory). When the use up the extra that was originally given to them they get more memory (pretty much always in increments of 2 pages or 8k, but getting only 4k is possible, everything will be in increments of the page size). When a program exits the OS consciously marks those pages as free, but it doesn't actually go through the long process of freeing them. It only actually goes back and reclaims the memory once somebody asks for a chunk of memory and there isn't enough room to give it to them.
Anyway, as a result once a system has been running long enough you typically see about 80-90% of the memory marked as used at all times. You only really need to be concerned about memoryusage stats if your swap usage goes up significantly over a period of time. ~49MB of swap usage isn't a big deal at all for a machine that has only 256MB of memory. On my machines (which all have 1 or 2 GB) I never see any usage on swap though after a long amount of time my memoryusage still reaches nearly 80% of the systems total memory.
Thanks, the reason that I was asking was my proxy server on here was running real slow so I thought that the memory was the cuplret. Thanks for the help. I understand better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.