From: "Stephen C. Tweedie" <sct@redhat.com>
To: Ulrich Drepper <drepper@cygnus.com>
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
linux-fsdevel@vger.rutgers.edu, linux-mm@kvack.org,
Theodore Ts'o <tytso@valinux.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: O_SYNC patches for 2.4.0-test1-ac11
Date: Fri, 9 Jun 2000 22:58:02 +0100 [thread overview]
Message-ID: <20000609225802.I2621@redhat.com> (raw)
In-Reply-To: <m3ya4ettbk.fsf@otr.mynet.cygnus.com>; from drepper@redhat.com on Fri, Jun 09, 2000 at 02:53:19PM -0700
Hi,
On Fri, Jun 09, 2000 at 02:53:19PM -0700, Ulrich Drepper wrote:
>
> > If I don't preallocate the file, then even fdatasync is slow, [...]
>
> This might be a good argument to implement posix_fallocate() in the
> kernel.
No. If we do posix_fallocate(), then there are only two choices:
we either pre-zero the file contents (in which case we are as well
doing it from user space), or we record in the inode that the file
isn't pre-zeroed and so optimise things.
If we do that optimisation, then doing an O_DSYNC write to the
already-allocated file will have to record in the inode that we are
pushing forward the non-prezeroed fencepost in the file, so we end
up having to seek back to the inode for each write anyway, so we
lose any possible benefit during the writes.
Once you have a database file written and preallocated, this is all
academic since all further writes will be in place and so will be
fast the th O_DSYNC/fdatasync support.
Cheers,
Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-06-09 21:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-09 21:36 Stephen C. Tweedie
2000-06-09 21:51 ` Ulrich Drepper
2000-06-09 21:55 ` Stephen C. Tweedie
2000-06-09 21:53 ` Ulrich Drepper
2000-06-09 21:58 ` Stephen C. Tweedie [this message]
2000-06-12 13:16 ` Jamie Lokier
2000-06-12 13:24 ` Jamie Lokier
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=20000609225802.I2621@redhat.com \
--to=sct@redhat.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=drepper@cygnus.com \
--cc=linux-fsdevel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=torvalds@transmeta.com \
--cc=tytso@valinux.com \
/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