LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Chuck Ebbert <cebbert@redhat.com>
Cc: Nikita Danilov <nikita@clusterfs.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [RFC][PATCH] split file and anonymous page queues #3
Date: Wed, 21 Mar 2007 12:56:10 -0400	[thread overview]
Message-ID: <460163AA.4050901@redhat.com> (raw)
In-Reply-To: <4601598A.7060904@redhat.com>

Chuck Ebbert wrote:

> I think you're going to have to use refault rates. AIX 3.5 had
> to add that. Something like:
> 
> if refault_rate(anonymous/mmap) > refault_rate(pagecache)
>    drop a pagecache page
> else
>    drop either

How about the opposite?

If the page cache refault rate is way higher than the
anonymous refault rate, did you favor page cache?

Btw, just a higher fault rate will already make that
cache grow faster than the other, simply because it
will have more allocations than the other cache and
they both get shrunk to some degree...

> You do have anonymous memory and mmapped executables in the same
> queue, right?

Nope.  It is very hard to see the difference between mmapped
executables and mmapped data from any structure linked off
the struct page...

-- 
All Rights Reversed

  reply	other threads:[~2007-03-21 17:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 22:08 Rik van Riel
2007-03-21  1:07 ` Matt Mackall
2007-03-21 19:11   ` Rik van Riel
2007-03-21  8:44 ` Nikita Danilov
2007-03-21 11:24   ` Rik van Riel
2007-03-21 11:48     ` Nikita Danilov
2007-03-21 12:01       ` Rik van Riel
2007-03-21 12:03         ` Rik van Riel
2007-03-21 15:29           ` Nikita Danilov
2007-03-21 16:08             ` Rik van Riel
2007-03-21 22:18               ` Nikita Danilov
2007-03-21 16:12         ` Chuck Ebbert
2007-03-21 16:56           ` Rik van Riel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-20 22:06 Rik van Riel

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=460163AA.4050901@redhat.com \
    --to=riel@redhat.com \
    --cc=cebbert@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=nikita@clusterfs.com \
    --subject='Re: [RFC][PATCH] split file and anonymous page queues #3' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).