From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: "Chuck Lever" <cel@netapp.com>
Cc: "Linux Kernel" <linux-kernel@vger.kernel.org>,
"NFS maillist" <nfs@lists.sourceforge.net>
Subject: RE: [NFS] [PATCH] New patch to flush out dirty mmap()ed NFS pages in 2.4.4
Date: Mon, 14 May 2001 22:45:37 +0200 [thread overview]
Message-ID: <15104.17393.392226.632794@charged.uio.no> (raw)
In-Reply-To: <NFBBLKEIKLGDCJAAAEKOMEDACAAA.cel@netapp.com>
In-Reply-To: <15102.39186.106340.57504@charged.uio.no> <NFBBLKEIKLGDCJAAAEKOMEDACAAA.cel@netapp.com>
>>>>> " " == Chuck Lever <cel@netapp.com> writes:
> the default behavior is that close() waits for all write-backs
> to be committed to the server's disk. you might add support
> for the "nocto" mount option so that waiting is skipped for
> shared mmap'd files, but then what happens to data that is
> pinned on the client because a write-back failed after close()
> returns to the application?
It gets written back slowly (by flushd) or the user can speed things
up using msync(). The latter will wait on completion.
In addition, I fixed up sys_sync() so that it (and also bdflush, &
friends) now also synchronizes to the server...
> what's the application domain Linus is trying to optimize?
AFAIK the most common use of (writeable) mmap() is for caching and
possibly for local IPC.
As I understood it, Linus' position is that we have msync() as a
documented generic synchronization point. Since, we were unable to
find any examples of programs that rely on stricter rules for mmap
(barring those which actually use locking), he suggested that our
policy should be that which impacts the least on performance.
Cheers,
Trond
prev parent reply other threads:[~2001-05-14 20:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.21.0105120801040.12451-100000@penguin.transmeta.com>
[not found] ` <15101.19298.12550.240215@charged.uio.no>
2001-05-13 14:24 ` Trond Myklebust
2001-05-14 20:04 ` [NFS] " Chuck Lever
2001-05-14 20:45 ` Trond Myklebust [this message]
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=15104.17393.392226.632794@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=cel@netapp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nfs@lists.sourceforge.net \
/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®