linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Roman Mamedov <rm@romanrm.net>
Cc: linux-btrfs@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: Kernel 4.4.0 KVM guest on Btrfs locks up on snapshotting
Date: Wed, 20 Jan 2016 03:28:04 -0500 (EST)	[thread overview]
Message-ID: <1185704624.11958670.1453278484410.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20160120040302.308f054e@natsu>

> Hello,
> 
> On Tue, 19 Jan 2016 23:18:59 +0100
> Paolo Bonzini <pbonzini@redhat.com> wrote:
> 
> > So this is kernel 4.4 on the host, and virtio-scsi in the guest.  What
> > about virtio-blk in the guest?
> 
> Tried with:
> 
>   -device virtio-blk-pci,drive=hd,scsi=off
> 
> it locks up as well.
> 
> In fact turns out it's not 100% lock-up, more like 50-80% chance.
> 
> But it certainly happens if I trigger heavy disk activity in the guest:
> 
>   while true; do dd if=/dev/zero of=zerofile count=1024 bs=1M; sync; done
> 
> ...at the same time repeatedly snapshotting the subvolume on the host.
> 
> Could not trigger it even once with IDE so far.

With IDE it's pretty much impossible to trigger heavy disk activity
(which comes from the sync more than the dd).

Can you reproduce it on the host without QEMU in the middle?  Also,
can you find the value of the "FUA" file in sysfs (e.g. with
"cat /sys/block/sda/device/scsi_disk/*/FUA")?

Paolo

> > > -drive
> > > if=none,id=hd,cache=writeback,aio=threads,format=raw,file=$NAME.img,discard=unmap,detect-zeroes=unmap
> > > \
> > 
> > So you're snapshotting the subvolume that includes $NAME.img?
> 
> Yes
> 
> 
> --
> With respect,
> Roman
> 

  reply	other threads:[~2016-01-20  8:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19 22:02 Kernel 4.4.0 KVM guest on Btrfs locks up on snapshotting Roman Mamedov
2016-01-19 22:18 ` Paolo Bonzini
2016-01-19 23:03   ` Roman Mamedov
2016-01-20  8:28     ` Paolo Bonzini [this message]
2016-01-20 13:58       ` Roman Mamedov
2016-01-20 17:28         ` Paolo Bonzini
2016-01-20 18:46           ` Roman Mamedov
2016-01-20 20:38             ` Paolo Bonzini
2016-01-20  0:19 ` Liu Bo
2016-01-20  5:08   ` Roman Mamedov
2016-01-20 11:34     ` Paolo Bonzini
2016-01-20 15:08       ` Roman Mamedov

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=1185704624.11958670.1453278484410.JavaMail.zimbra@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rm@romanrm.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;
as well as URLs for NNTP newsgroup(s).