public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Sargent <Paul.Sargent@3dlabs.com>
To: linux-kernel@vger.kernel.org
Subject: Machine not freeing Cached Memory?
Date: Fri, 26 Apr 2002 12:34:59 +0100	[thread overview]
Message-ID: <20020426113459.GH9968@3dlabs.com> (raw)

Hi There,

I'm having some VM problems. I wonder if anybody can help.

I've got a box here that currently reports....

holly:~/linux-2.4.14# free -tm
             total       used       free     shared    buffers     cached
Mem:          3021       1041       1980          0          4        885
-/+ buffers/cache:        151       2870
Swap:         3905        126       3779
Total:        6927       1167       5759
	     
As you can see, it's a 3G physical RAM box. Currently it's sitting there
with 885MB of Memory labeled as Cache, but if I run a process which requires
lots of memory, then the system seems to prefer swapping, rather than
freeing up the cache memory. For example...

             total       used       free     shared    buffers     cached
Mem:          3021       3019          2          0          1        845
-/+ buffers/cache:       2172        849
Swap:         3905        488       3417
Total:        6927       3508       3419
	     
Yes, some 40MB of cache gets freed, but it's mainly (300MB) of swap that
gets used. This tends to slow down processes before they need to because the
machine is thrashing  (and I mean really hammering) swap.

Anyone got any ideas?

Kernel is 2.4.14, and it's a debian woody installation.

Is a later version of 2.4 likly to help me here?

Cheers

Paul
-- 
Paul Sargent
mailto: Paul.Sargent@3Dlabs.com

                 reply	other threads:[~2002-04-26 11:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020426113459.GH9968@3dlabs.com \
    --to=paul.sargent@3dlabs.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox