From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: linux-kernel@vger.kernel.org
Subject: Re: Performance problems with NFS under 2.4.20
Date: 13 Jan 2003 16:57:28 +0100 [thread overview]
Message-ID: <shsfzrxrqjb.fsf@charged.uio.no> (raw)
In-Reply-To: <m3y95pkqpd.fsf@quimbies.gnus.org>
>>>>> " " == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Upgrading from 2.2.20, I'm seeing vastly increased network
> traffic, and after poking around a bit, I find that all calls
> to open() on files on NFS-mounted partitions generates one UDP
> packet. Switching on NFS debugging, and then saying
> $ cat file $ cat file
> shows me this:
> Jan 13 16:27:23 litos kernel: NFS: refresh_inode(b/876609548
> ct=1 info=0x2) Jan 13 16:27:23 litos kernel: nfs: read(//file,
> 4096@0) Jan 13 16:27:23 litos kernel: nfs: read(//file,
> 4096@17) Jan 13 16:27:23 litos kernel: nfs: flush(b/876609548)
> Jan 13 16:27:23 litos kernel: NFS: dentry_delete(//file, 0) Jan
> 13 16:27:24 litos kernel: NFS: refresh_inode(b/876609548 ct=1
> info=0x2) Jan 13 16:27:24 litos kernel: nfs: read(//file,
> 4096@0) Jan 13 16:27:24 litos kernel: nfs: read(//file,
> 4096@17) Jan 13 16:27:24 litos kernel: nfs: flush(b/876609548)
> Jan 13 16:27:24 litos kernel: NFS: dentry_delete(//file, 0)
> The partition is mounted with just
> $ mount server:/db /db
> Adding a "-o actimeo=100" makes no difference.
> Is this supposed 1) to be this way, or 2) a bug, or 3) a
> misconfiguration on my part?
That is quite deliberate.
open() is supposed to generate an RPC call in order to ensure that
cached attributes (and hence cached data) are still valid (this is
part of what is known as NFS 'close-to-open' cache consistency).
If you are certain that you will never access the same file/directory
from 2 different machines, you can try to mount with the 'nocto' mount
option.
Cheers,
Trond
next prev parent reply other threads:[~2003-01-13 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-13 15:35 Lars Magne Ingebrigtsen
2003-01-13 15:57 ` Trond Myklebust [this message]
2003-01-13 16:11 ` Lars Magne Ingebrigtsen
2003-01-13 17:23 ` Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=shsfzrxrqjb.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®