linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <josef@redhat.com>
To: Martin Schitter <ms@mur.at>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs csum failed
Date: Wed, 04 May 2011 10:39:52 -0400	[thread overview]
Message-ID: <4DC16538.3070900@redhat.com> (raw)
In-Reply-To: <4DC0A153.3080806@mur.at>

On 05/03/2011 08:44 PM, Martin Schitter wrote:
> Am 2011-05-04 02:28, schrieb Josef Bacik:
>> Wait why are you running with btrfs in production?
>
> do you know a better alternative for continuous snapshots? :)
>
> it works surprisingly well since more than a year.
> well the performance could be better for vm-image-hosting but it works.
>
> we used cache='writeback' for a long time but now all virtual instances
> have set cache='none'
>
>> What OS is in this vm image?
>
> 2.6.30-bpo.1-amd64 with virtio-driver
>
> could you give me some advice how to debug/report this specific problem
> more precise?
>

So there is a problem with DIO, since userspace can modify pages in 
flight we will end up with the wrong checksums since the data can change 
in flight.  I was trying to come up with a way to fix this but there's 
really nothing to be done at the moment other than turn off checksumming 
per file.  Windows was particularly bad about this, but I hadn't seen it 
with Linux guests (even though it should still be happening).  So I'll 
come up with something to turn off checksumming per file to get around 
this for now, I'll try and get to that soonish.  Thanks,

Josef

  parent reply	other threads:[~2011-05-04 14:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 21:56 btrfs csum failed Martin Schitter
2011-05-04  0:28 ` Josef Bacik
2011-05-04  0:44   ` Martin Schitter
2011-05-04  2:18     ` Fajar A. Nugraha
2011-05-04 11:39       ` Martin Schitter
2011-05-04 11:47         ` Hugo Mills
2011-05-04 11:51         ` cwillu
2011-05-04 12:27           ` Martin Schitter
2011-05-04 13:23             ` Edward Ned Harvey
2011-05-04 14:42               ` Martin Schitter
2011-05-04 18:10                 ` Chris Mason
2011-05-04 14:09           ` Jan Schmidt
2011-05-04 12:31         ` Kaspar Schleiser
2011-05-04 13:25           ` Martin Schitter
2011-05-04 14:39     ` Josef Bacik [this message]
2011-05-04 12:39 ` Chris Mason
2011-05-04 14:06   ` Martin Schitter

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=4DC16538.3070900@redhat.com \
    --to=josef@redhat.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=ms@mur.at \
    /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;
as well as URLs for NNTP newsgroup(s).