public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Gretencord <arutha@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: Con Kolivas <kernel@kolivas.org>
Subject: Re: Swapping in 2.6.10 and 2.6.11.11 on a desktop system
Date: Wed, 15 Jun 2005 15:44:16 +0200	[thread overview]
Message-ID: <200506151544.17191.arutha@gmx.de> (raw)
In-Reply-To: <200506150242.02606.kernel@kolivas.org>

On Tuesday 14 June 2005 18:42, Con Kolivas wrote:
> Try the mapped watermark patch from -ck on 2.6.11*

Unfortunately this patch does not help either. The patch buys me time but then 
I get swapping at the 300MB mark. 2.6.8.1 with swappiness=0 swaps later than 
this...

These are 'free -m' statistics a minute after reaching the 300MB mark:

             total       used       free     shared    buffers     cached
Mem:           503        498          5          0         36        376
-/+ buffers/cache:         85        418
Swap:          494        227        266

Why does the kernel think that I need 400MB of disk cache when I start some 
memory hungry apps? Can't we have a hard limit on disk cache, like: "Don't 
use more than 100MB of disk cache".

The problem seems to be that instead of using a big disk cache when theres 
plenty of ram and reducing disk cache when applications need the ram, the 
disk cache shrinks until a magic watermark and then grows and grows until 
theres no ram left for the applications. At least thats the behaviour I am 
seeing.


Alex

P.S.: Please cc me as I'm not on the list.

  reply	other threads:[~2005-06-15 13:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14 14:53 Swapping in 2.6.10 and 2.6.11.11 on a desktop system Alexander Gretencord
2005-06-14 16:42 ` Con Kolivas
2005-06-15 13:44   ` Alexander Gretencord [this message]
2005-06-16  4:16     ` Con Kolivas
2005-06-20 19:09       ` Alexander Gretencord

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=200506151544.17191.arutha@gmx.de \
    --to=arutha@gmx.de \
    --cc=kernel@kolivas.org \
    --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