Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-11-2005, 11:34 AM
|
#1
|
Member
Registered: Nov 2004
Posts: 34
Rep:
|
something's eating memory and i don't know what
I'm using Slackware 10 (kernel 2.4.26), and the amount of free RAM is getting lower and lower, constantly, in a steps of just a few kilobytes, but I installed the system with only basic services, as I need it just for very busy web server...
You may see a screenshot of a top utility after 16 minutes at i.vizio.biz/linux-top-2.gif, and after 2hr52min at this address: i.vizio.biz/linux-top-2.gif
The CPU is Intel Pentium 1 MMX 200 Mhz, RAM is SDRAM 256 MB...
Is it normal behaviour (I believe it is maybe a disk cache?), or is it an error?
Please help,
Marko
|
|
|
03-11-2005, 11:59 AM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,837
|
You could try looking at the process subdirectories under /proc. In each of these, there is a file called "status". In that file there are records that show the VM (I think I'd grep for "Name:", "VmSize:", and "VmRSS:") usage, etc. for that process. You could try writing a script to read all the "status" files in each of those subdirectories, grepping for these records, and stashing the results in a temp file, wait a while and run it again. Then compare the results to see which process's memory utilization is growing. That's a pretty simplfied description but that might help you out. But I wonder if what you might be seeing is growth in the I/O buffers. What does "free" show over time?
|
|
|
03-11-2005, 01:48 PM
|
#3
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
It is likely normal behavior.
On my system when I type "free -m" it says I have 123 total, 121 used and 1 free. The line below w/ "-/+ buffers/cache:" says I have 68 used of that. If you look at "free" over time you will see that the buffers/cache number grows over time. There is nothing wrong w/ this. If another program needs memory then the buffer/cache get moved out of the way.
Does this help?
|
|
|
03-11-2005, 02:39 PM
|
#4
|
Member
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170
Rep:
|
Linux is writen to use memory if it is there. This is probably normal behavior. You will probably not "run out of memory" because Linux will reclaim memory when it is needed.
|
|
|
All times are GMT -5. The time now is 04:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|