Linux-kernel mailing list archive 2000-23,: Re: memory pressure callbacks (was: 2.5 TODO)

# Re: memory pressure callbacks (was: 2.5 TODO)

Stephen C. Tweedie (sct@redhat.com)
Tue, 6 Jun 2000 21:12:32 +0100

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Stephen C. Tweedie: "Re: FOPS needs Shutdown SIG Hook!!!"
- Previous message: Chris Mason: "Re: memory pressure callbacks (was: 2.5 TODO)"

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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Stephen C. Tweedie: "Re: FOPS needs Shutdown SIG Hook!!!"
- Previous message: Chris Mason: "Re: memory pressure callbacks (was: 2.5 TODO)"