LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-11-2005, 12:34 PM   #1
trancephorm
Member
 
Registered: Nov 2004
Posts: 34

Rep: Reputation: 0
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
 
Old 03-11-2005, 12:59 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Posts: 1,106

Rep: Reputation: 64
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?
 
Old 03-11-2005, 02:48 PM   #3
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
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?
 
Old 03-11-2005, 03:39 PM   #4
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Something is eating my memory benne Linux - Software 15 11-25-2004 07:02 AM
Linux is eating to much memory!!! alwin Linux - General 9 01-13-2003 05:50 PM
Linux is eating to much memory!!! alwin Linux - Software 2 01-12-2003 11:33 PM
Linux is eating to much memory!!! alwin Linux - Networking 2 01-12-2003 11:32 PM
How do I see what's eating all my memory? thomas.nichols Linux - General 1 09-05-2001 10:19 AM


All times are GMT -5. The time now is 01:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration