[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200802260226.26984.phillips@phunq.net>
Date: Tue, 26 Feb 2008 02:26:26 -0800
From: Daniel Phillips <phillips@...nq.net>
To: David Howells <dhowells@...hat.com>
Cc: Trond.Myklebust@...app.com, chuck.lever@...cle.com,
casey@...aufler-ca.com, nfsv4@...ux-nfs.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
selinux@...ho.nsa.gov, linux-security-module@...r.kernel.org
Subject: Re: [PATCH 00/37] Permit filesystem local caching
I need to respond to this in pieces... first the bit that is bugging
me:
> > * two new page flags
>
> I need to keep track of two bits of per-cached-page information:
>
> (1) This page is known by the cache, and that the cache must be informed if
> the page is going to go away.
I still do not understand the life cycle of this bit. What does the
cache do when it learns the page has gone away? How is it informed?
Who owns the page cache in which such a page lives, the nfs client?
Filesystem that hosts the page? A third page cache owned by the
cache itself? (See my basic confusion about how many page cache
levels you have, below.)
Suppose one were to take a mundane approach to the persistent cache
problem instead of layering filesystems. What you would do then is
change NFS's ->write_page and variants to fiddle the persistent
cache as well as the network, instead of just the network as now.
This fiddling could even consist of ->write calls to another
filesystem, though working directly with the bio interface would
yield the fastest, and therefore to my mind, best result.
In any case, you find out how to write the page to backing store by
asking the filesystem, which in the naive approach would be nfs
augmented with caching library calls. The filesystem keeps its own
metadata around to know how to map the page to disk. So again
naively, this metadata could tell the nfs client that the page is
not mapped to disk at all. So I do not see what your per-page bit
is for, obviously because I do not fully understand your caching
scheme. Which I could eventually find out by reading all the
patches but asking you is so much more fun :-)
By the way, how many levels of page caching for the same data are
there, is it:
1) nfs client
2) cache layer's own page cache
3) filesystem hosting the cache
or just:
1) nfs client page cache
2) filesystem hosting the cache
I think it is the second, but that is already double caching, which
has got to hurt.
Regards,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists