From: "Stephen C. Tweedie" <sct@redhat.com>
To: frankeh@us.ibm.com
Cc: Rik van Riel <riel@conectiva.com.br>,
Andreas Bombe <andreas.bombe@munich.netsurf.de>,
linux-kernel@vger.rutgers.edu, linux-mm@kvack.org
Subject: Re: Best way to extend try_to_free_pages()?
Date: Wed, 17 May 2000 09:08:39 +0100 [thread overview]
Message-ID: <20000517090839.F30758@redhat.com> (raw)
In-Reply-To: <852568E2.000A17E8.00@D51MTA03.pok.ibm.com>; from frankeh@us.ibm.com on Tue, May 16, 2000 at 09:51:17PM -0400
Hi,
On Tue, May 16, 2000 at 09:51:17PM -0400, frankeh@us.ibm.com wrote:
> I assume everything could register as a first class citizen, including file
> cache, etc.....
> Some thoughts along the line.
> Would it make sense to priorities such <kernel-memory-clients>.
> Wouldn't it make sense to specify the number of pages as part of the
> interface?
> Do you assume fairness among memory clients based on the cyclic queue if
> priorities is not desirable.
Chris Mason and I have already been looking at doing something
similar, but on a per-page basis, to allow advanced filesystems to
release memory in a controlled manner. This is particularly
necessary for journaled filesystems, in which releasing certain
data may require a transaction commit --- until the commit, there
is just no way shrink_mmap() will be able to free those pages, so
there has to be a way for shrink_mmap() to let the filesystem know
that it wants some memory back.
The route we'll probably go for this is through address_space_operations
callbacks from shrink_mmap. That allows proper fairness --- all fses
can share the same lru that way.
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-05-17 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-17 1:51 Best way to extend try_to_free_pages()? frankeh
2000-05-17 8:08 ` Stephen C. Tweedie [this message]
2000-05-17 9:44 ` Trond Myklebust
2000-05-17 10:48 ` Stephen C. Tweedie
[not found] <20000517005828.A3028@storm.local>
2000-05-16 23:46 ` 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=20000517090839.F30758@redhat.com \
--to=sct@redhat.com \
--cc=andreas.bombe@munich.netsurf.de \
--cc=frankeh@us.ibm.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.