From: Rik van Riel <riel@redhat.com>
To: Brian Harring <ferringb@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: fsync/MAP_SHARED slowdown
Date: Thu, 20 Mar 2008 18:17:57 -0400 [thread overview]
Message-ID: <20080320181757.737af9b4@cuia.boston.redhat.com> (raw)
In-Reply-To: <20080320201216.GA4910@seldon.hsd1.ca.comcast.net>
On Thu, 20 Mar 2008 13:12:16 -0700
Brian Harring <ferringb@gmail.com> wrote:
> Back in 09/2006, rev d08b3851da41d0ee60851f2c75b118e1f7a5fc89
> (discussion at http://lkml.org/lkml/2006/6/19/245) was commited with
> the purpose enabling tracking of shared dirty pages.
>
> Still trying to identify exactly why, but that specific rev results in
> a ~3x slowdown in fsync speed for an app of ours- an isolated test
> case demonstrating it is attached.
The kernel now includes an implicit msync for each fsync.
In short, before the change an fsync would not find all the dirty pages
of the file, because some of the dirty bits might be "hiding" in the
page tables, while the current kernel actually finds those dirty bits
and writes all dirty data to disk.
Would you rather have the fast fsync, or the one that actually writes
all the dirty data to disk? :)
--
All Rights Reversed
prev parent reply other threads:[~2008-03-20 22:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-20 20:12 Brian Harring
2008-03-20 22:17 ` Rik van Riel [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=20080320181757.737af9b4@cuia.boston.redhat.com \
--to=riel@redhat.com \
--cc=ferringb@gmail.com \
--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®