public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Jesse Barnes <jbarnes@engr.sgi.com>
Cc: krmurthy@cisco.com, linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: Limiting memory allocated by buffer cache in 2.4 kernel
Date: Thu, 16 Dec 2004 07:14:57 -0200	[thread overview]
Message-ID: <20041216091457.GA8246@logos.cnet> (raw)
In-Reply-To: <200412150956.23799.jbarnes@engr.sgi.com>

On Wed, Dec 15, 2004 at 09:56:23AM -0800, Jesse Barnes wrote:
> On Wednesday, December 15, 2004 6:45 am, N.C.Krishna Murthy (krmurthy) wrote:
> > Hi,
> >  I am using linux 2.4.22 kernel. Is there any way to limit the amount
> > of memory allocated by buffer cache? Eariler versions used to have
> > /proc/sys/vm/buffermem.

Nope, there is no such feature. 

It may have worked in v2.2 (not sure about that though, have you checked?) but 
it surely doesnt in v2.4.

> For that matter, is there a way to do this in 2.6?  We've seen problems caused 
> by huge page caches pushing data allocations off-node, so it would be really 
> nice to have a limit control...

v2.6 doesnt have such feature either. 

Shouldnt be too hard to add hooks at page_cache_alloc()/page_cache_alloc_cold()  
level for dropping clean unmapped pages off the tail of the LRU once a given
limit is reached. Andrew ?

      reply	other threads:[~2004-12-16 12:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 14:45 Limiting memory allocated by buffer cache in 2.4 kernel N.C.Krishna Murthy (krmurthy)
2004-12-15 17:56 ` Jesse Barnes
2004-12-16  9:14   ` Marcelo Tosatti [this message]

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=20041216091457.GA8246@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=akpm@osdl.org \
    --cc=jbarnes@engr.sgi.com \
    --cc=krmurthy@cisco.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