* Re: memory pressure callbacks (was: 2.5 TODO)
[not found] ` <Pine.LNX.4.10.10006061232040.9710-100000@home.suse.com>
@ 2000-06-06 20:12 ` Stephen C. Tweedie
0 siblings, 0 replies; only message in thread
From: Stephen C. Tweedie @ 2000-06-06 20:12 UTC (permalink / raw)
To: Chris Mason
Cc: Quintela Carreira Juan J., sct, linux-kernel, linux-mm, reiserfs
Hi,
On Tue, Jun 06, 2000 at 01:06:00PM -0700, Chris Mason wrote:
> >
> > Chris, I think that you don't want to put that in the address space
> > operations, the main reason is that you don't want your pages to stay
> > in the main LRU queue, because you need to freed them in an specific
> > order (not LRU at all). Then if shrink_mmap is not scanning your
> > pages, it is better to use your own reclaim function, that would be
> > called from do_try_to_free_pages (a la shrink_[di]cache way).
>
> The goal isn't to make something perfect for the journaled filesystems, it
> is a generic facility that also happens to work for the journaled
> filesystems. So, I like the address space operations, mostly
> because this is an operation on an address space ;-)
Right. There's one other major problem with a lot of page reclaim
algorithms --- the algorithm can be the best in the world, but it needs
to be balanced against the other page stealers in the kernel too.
Using the main LRUs for all filesystems, with address_space callbacks
to free pages, should make such balancing a lot easier to achieve.
Cheers,
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-06-06 20:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <yttr9aahgrx.fsf@serpe.mitica>
[not found] ` <Pine.LNX.4.10.10006061232040.9710-100000@home.suse.com>
2000-06-06 20:12 ` memory pressure callbacks (was: 2.5 TODO) Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox