linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Questions abou nfsd file cache and open files
@ 2013-11-29 11:21 Charles 'Boyo
  2013-12-02 16:46 ` Chuck Lever
  0 siblings, 1 reply; 3+ messages in thread
From: Charles 'Boyo @ 2013-11-29 11:21 UTC (permalink / raw)
  To: Trond Myklebust, Chuck Lever, linux-nfs@vger.kernel.org

Hello all.

Please guide me into to find out the impact a busy nfsd is having on
the Linux page cache. Is it possible to determine which files have
portions in the page cache?

Secondly, files opened by nfs clients do not show up in lsof (or ftop)
on the nfs server? Is there any way to list these open files and more
importantly, observe the i/o to them?

Charles

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions abou nfsd file cache and open files
  2013-11-29 11:21 Questions abou nfsd file cache and open files Charles 'Boyo
@ 2013-12-02 16:46 ` Chuck Lever
  2013-12-02 16:50   ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Lever @ 2013-12-02 16:46 UTC (permalink / raw)
  To: Charles 'Boyo; +Cc: Bruce Fields, Linux NFS Mailing List

Hi-

Questions about NFSD should go to Bruce Fields (copied), the Linux NFS server maintainer.


On Nov 29, 2013, at 6:21 AM, Charles 'Boyo <charlesboyo@gmail.com> wrote:

> Hello all.
> 
> Please guide me into to find out the impact a busy nfsd is having on
> the Linux page cache. Is it possible to determine which files have
> portions in the page cache?

That is not possible even for local files, AFAIK.  (/me prepares to eat his words).

> Secondly, files opened by nfs clients do not show up in lsof (or ftop)
> on the nfs server? Is there any way to list these open files and more
> importantly, observe the i/o to them?


NFSv3 does not have an OPEN operation.  It would be difficult to tell, accurately, what an NFSv3 client was up to by looking for open files on an NFS server.

NFSv4 does perform file OPENs on the wire, but our I/O metrics are per-NFS operation, not per-file.  So you can see how many READs and WRITEs are done in aggregate, but not by which client, and not for a particular file.

NFSv4 also has delegation, which allows clients to operate on files without contacting the NFS server.  I/O activity that is cached by a client would not be visible to the storage server in any way.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions abou nfsd file cache and open files
  2013-12-02 16:46 ` Chuck Lever
@ 2013-12-02 16:50   ` J. Bruce Fields
  0 siblings, 0 replies; 3+ messages in thread
From: J. Bruce Fields @ 2013-12-02 16:50 UTC (permalink / raw)
  To: Chuck Lever; +Cc: Charles 'Boyo, Linux NFS Mailing List

On Mon, Dec 02, 2013 at 11:46:32AM -0500, Chuck Lever wrote:
> Hi-
> 
> Questions about NFSD should go to Bruce Fields (copied), the Linux NFS server maintainer.
> 
> 
> On Nov 29, 2013, at 6:21 AM, Charles 'Boyo <charlesboyo@gmail.com> wrote:
> 
> > Hello all.
> > 
> > Please guide me into to find out the impact a busy nfsd is having on
> > the Linux page cache. Is it possible to determine which files have
> > portions in the page cache?
> 
> That is not possible even for local files, AFAIK.  (/me prepares to eat his words).

Right.  Sounds like an interesting research project....

> > Secondly, files opened by nfs clients do not show up in lsof (or ftop)
> > on the nfs server? Is there any way to list these open files and more
> > importantly, observe the i/o to them?
> 
> 
> NFSv3 does not have an OPEN operation.  It would be difficult to tell, accurately, what an NFSv3 client was up to by looking for open files on an NFS server.
> 
> NFSv4 does perform file OPENs on the wire, but our I/O metrics are per-NFS operation, not per-file.  So you can see how many READs and WRITEs are done in aggregate, but not by which client, and not for a particular file.
> 
> NFSv4 also has delegation, which allows clients to operate on files without contacting the NFS server.  I/O activity that is cached by a client would not be visible to the storage server in any way.

Yes.  We could (and really should) have some statistics/debugging
interfaces to expose information like which clients currently hold NFSv4
opens, but we don't currently.

--b.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-02 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29 11:21 Questions abou nfsd file cache and open files Charles 'Boyo
2013-12-02 16:46 ` Chuck Lever
2013-12-02 16:50   ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).