Re: Possible Idea with filesystem buffering.

Rik van Riel (riel@conectiva.com.br)
Mon, 21 Jan 2002 10:12:03 -0200 (BRST)


On Mon, 21 Jan 2002, Hans Reiser wrote:

> >It seems you're still assuming that different filesystems will
> >all see the same kind of load.
>
> I don't understand this comment.

[snip]

> The VM should apply pressure to the caches. It should define an
> interface that subcache managers act in response to. The larger a
> subcache is, the more percentage of total memory pressure it should
> receive.

Wrong. If one filesystem is actively being used (eg. kernel
compile) and the other filesystem's cache isn't being used
(this one held the tarball of the kernel source) then the
cache which is being used actively should receive less
pressure than the cache which doesn't hold any active pages.

We really want to evict the kernel tarball from memory while
keeping the kernel source and object files resident.

This is exactly the reason why each filesystem cannot manage
its own cache ... it doesn't know anything about what the
system as a whole is doing.

regards,

Rik

-- 
"Linux holds advantages over the single-vendor commercial OS"
    -- Microsoft's "Competing with Linux" document

http://www.surriel.com/ http://distro.conectiva.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/