1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
semantic: 0.946
graphic: 0.944
mistranslation: 0.933
other: 0.932
assembly: 0.922
instruction: 0.918
vnc: 0.912
network: 0.903
device: 0.902
KVM: 0.870
socket: 0.855
boot: 0.849
block_stream command stalls
block_stream command stalls near finishing.
I tried 1.7.1, 2.0.0 and the master versions. All of them stalled.
But the 1.1.2 could finish the job.
Here is how to reproduce it:
$ sudo $QEMU \
-enable-kvm -cpu qemu64 -m 1024 \
-monitor stdio \
-drive file=./i1,if=none,id=drive_0,cache=none,aio=native -device virtio-blk-pci,drive=drive_0,bus=pci.0,addr=0x5 \
QEMU 2.0.50 monitor - type 'help' for more information
(qemu) VNC server running on `127.0.0.1:5900'
(qemu) snapshot_blkdev drive_0 s1
Formatting 's1', fmt=qcow2 size=26843545600 backing_file='./i1' backing_fmt='qcow2' encryption=off cluster_size=65536 lazy_refcounts=off
(qemu) block_stream drive_0
(qemu) info block-jobs
Streaming device drive_0: Completed 400818176 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive_0: Completed 904396800 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive_0: Completed 23401070592 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive_0: Completed 26513768448 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) main-loop: WARNING: I/O thread spun for 1000 iterations
info block-jobs
Streaming device drive_0: Completed 26841513984 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive_0: Completed 26841513984 of 26843545600 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive_0: Completed 26841513984 of 26843545600 bytes, speed limit 0 bytes/s
#### here, the progress stopped at 26841513984 ####
$ qemu-img info i1
image: i1
file format: qcow2
virtual size: 25G (26843545600 bytes)
disk size: 1.0G
cluster_size: 2097152
Format specific information:
compat: 1.1
lazy refcounts: false
On Wed, May 21, 2014 at 09:55:26AM -0000, mcpacino wrote:
> block_stream command stalls near finishing.
> I tried 1.7.1, 2.0.0 and the master versions. All of them stalled.
> But the 1.1.2 could finish the job.
Can you still reproduce this on qemu.git/master?
$ qemu-system-x86_64 -enable-kvm -m 1024 -cpu host -drive if=virtio,cache=none,file=test.img,id=drive_1
...
(qemu) info block-jobs
Streaming device drive0: Completed 3115843584 of 8589934592 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
Streaming device drive0: Completed 3171942400 of 8589934592 bytes, speed limit 0 bytes/s
(qemu) info block-jobs
No active jobs
To Stefan:
yes, I can reproduce this on qemu.git/master.
Actually, I've found the cause of this bug and sent a patch to qemu-devel mailing list a few days ago:
http://lists.nongnu.org/archive/html/qemu-devel/2014-05/msg05777.html
It's very kind of you helping review the patch and give some comments.
Thanks.
Cong Meng.
Triaging old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
[Expired for QEMU because there has been no activity for 60 days.]
|