LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2004, 12:49 AM   #1
TomaCzar
Member
 
Registered: Dec 2003
Location: Roc City (Rochester-NY)
Distribution: Slacker 4 Life
Posts: 125

Rep: Reputation: 15
disk cache chews up memory and won't let go


I've been trying to get my arms around Slackware Linux for the last few months and I'm damn close, but just not hitting the mark. I've tried google and the forums and newsgroups, but this one's eluding me. On all of my machines, regardless of kernel or configuration, for some reason all of my memory gets eaten up by disk cache. Even the box with 2gigs of RAM eventually all gets used and never released. I don't know WHERE to begin to start looking, any help would be greatly appreciated. Oh yes, while I'm sure there's some file associated but I don't know what it is, so if there's a .conf you need, just say the words.
 
Old 03-07-2004, 04:54 AM   #2
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
The cache grows to use all available ram. The when you need more ram for processes just suficient cache is released. Linux boxes don't like having unused ram.
 
Old 03-07-2004, 09:06 AM   #3
TomaCzar
Member
 
Registered: Dec 2003
Location: Roc City (Rochester-NY)
Distribution: Slacker 4 Life
Posts: 125

Original Poster
Rep: Reputation: 15
Holy hand grenades. For two months I've been trying off and on to fix this problem, only to find out that that's the way things ought to be. No wonder I couldn't find any help on the subject. Thanks so very much for letting me know.
 
Old 03-07-2004, 01:51 PM   #4
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
If you type "free" at the console, you should see something like this:
Code:
             total       used       free     shared    buffers     cached
Mem:        514968     509792       5176          0      22152     336496
-/+ buffers/cache:     151144     363824
Swap:       979956          0     979956
You can see how much memory is actually free less disk cache.

Alternatively, you can use "free -m" to get the figures in megabytes:
Code:
             total       used       free     shared    buffers     cached
Mem:           502        497          5          0         21        328
-/+ buffers/cache:        147        355
Swap:          956          0        956
As you can see, it looks like almost all my memory is used up, but looking at the line that has "-/+ buffers/cache:", I'm only using 147 MB.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache memory size too high? Boomba Linux - General 2 10-15-2005 01:32 PM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
How do I clear the memory cache on my linux server? robgo777 Linux - Software 2 01-09-2005 01:30 AM
gconv-modules.cache eating my memory!!! dustu76 Fedora 0 12-09-2004 11:59 AM
How to find size of Cache memory i.e. L1 and L2 elanvital Linux - General 0 05-29-2004 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:07 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