BUG - qdev - partial loss of network connectivity
Subsystems (5)
Hi,
This is a qemu-kvm (i.e. not qemu) bug report. I've been told on IRC (#kvm) that this bug report should go to this list anyway.
host and guest kernel: 2.6.32.22
arch: amd64
qemu-kvm: 0.12.5 and 0.13.0-rc1
How to reproduce: copy a large (few hundred MB) file to an NFS mount (guest is the client), using qdev syntax for virtio:
-device virtio-net-pci,netdev=tap1,mac=ab:cd:ef:01:23:45 \
-netdev type=tap,id=tap1,ifname=tap1
all NFS mounts immediately stall and processes go into D state and are stuck on nfs_wait_bit_uninterruptible. There is no further communication between the client and the server. It occurs with UDP and TCP mounts.
That same guest, when switched to the old -net/-net syntax:
-net nic,vlan=0,model=virtio,name=eth0,macaddr=ab:cd:ef:01:23:45 \
-net tap,vlan=0,ifname=tap1
works fine. It also works fine on bare metal.
I can reproduce the problem every time within 10 minutes with qdev.
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude BalloonQuoted 25 lines · Leszek Urbanski
Hi,
This is a qemu-kvm (i.e. not qemu) bug report. I've been told on IRC (#kvm) that this bug report should go to this list anyway.
host and guest kernel: 2.6.32.22
arch: amd64
qemu-kvm: 0.12.5 and 0.13.0-rc1How to reproduce: copy a large (few hundred MB) file to an NFS mount (guest is the client), using qdev syntax for virtio:
(quoted diff) +0
-2-device virtio-net-pci,netdev=tap1,mac=ab:cd:ef:01:23:45 \ -netdev type=tap,id=tap1,ifname=tap1all NFS mounts immediately stall and processes go into D state and are stuck on
nfs_wait_bit_uninterruptible. There is no further communication between the client and the server. It occurs with UDP and TCP mounts.That same guest, when switched to the old -net/-net syntax:
(quoted diff) +0
-2-net nic,vlan=0,model=virtio,name=eth0,macaddr=ab:cd:ef:01:23:45 \ -net tap,vlan=0,ifname=tap1
Quoted 4 lines
works fine. It also works fine on bare metal.
I can reproduce the problem every time within 10 minutes with qdev.
Is the guest kernel vanilla 2.6.32.22 or is it a distro kernel? If the later, what distro?
The difference in the two invocations is that with the -device syntax, you're getting offload features enabled.
Regards,
Anthony Liguori
<[email protected]>; from Anthony Liguori on Wed, Sep 22, 2010 at 12:41:03 -0500
Quoted 5 lines
Is the guest kernel vanilla 2.6.32.22 or is it a distro kernel? If the later, what distro?
The difference in the two invocations is that with the -device syntax, you're getting offload features enabled.
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude BalloonQuoted 6 lines · Leszek Urbanski
<[email protected]>; from Anthony Liguori on Wed, Sep 22, 2010 at 12:41:03 -0500
Quoted 3 lines
Is the guest kernel vanilla 2.6.32.22 or is it a distro kernel? If the later, what distro?
Quoted 9 lines
Quoted 3 lines
The difference in the two invocations is that with the -device syntax, you're getting offload features enabled.
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
It's not technically the only difference but it's the most likely culprit IMHO.
Regards,
Anthony Liguori
<[email protected]>; from Anthony Liguori on Wed, Sep 22, 2010 at 13:35:35 -0500
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Is the guest kernel vanilla 2.6.32.22 or is it a distro kernel? If the later, what distro?
The difference in the two invocations is that with the -device syntax, you're getting offload features enabled.
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
Quoted 6 lines
Quoted 3 lines
If offload is the only difference, I'll play with different offload options and check which one causes it.
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude BalloonMichael S. Tsirkin
maintainerQuoted 11 lines · Leszek Urbanski
<[email protected]>; from Anthony Liguori on Wed, Sep 22, 2010 at 13:35:35 -0500
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Is the guest kernel vanilla 2.6.32.22 or is it a distro kernel? If the later, what distro?
The difference in the two invocations is that with the -device syntax, you're getting offload features enabled.
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
If offload is the only difference, I'll play with different offload options and check which one causes it.
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?
Quoted 5 lines
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA "Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more wretched hive of bugs and flamers. We must be cautious." -- DECWARS http://cygnus.moo.pl/ -- Cygnus High Altitude Balloon
<[email protected]>; from Michael S. Tsirkin on Sun, Sep 26, 2010 at 17:43:24 +0200
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?
(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )
I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have fixed it, or should I dissect?
2.6.32.x - there's nothing interesting in dmesg, apart from traces related to tasks in D state waiting on the NFS mounts:
[ 84.396127] nfs: server 10.0.0.1 not responding, still trying [ 240.568162] INFO: task cp:1838 blocked for more than 120 seconds. [ 240.569715] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 240.571486] cp D 0000000000000002 0 1838 1831 0x00000000 [ 240.573340] ffff88011fa5b880 0000000000000082 0000000000000000 ffff88011e45bb44 [ 240.575508] ffff88011e45bcc8 ffffffff8102cdac 000000000000f9e0 ffff88011e45bfd8 [ 240.578827] 0000000000015780 0000000000015780 ffff88011c7ce2e0 ffff88011c7ce5d8 [ 240.580502] Call Trace: [ 240.581132] [<ffffffff8102cdac>] ? pvclock_clocksource_read+0x3a/0x8b [ 240.582427] [<ffffffff8102cdac>] ? pvclock_clocksource_read+0x3a/0x8b [ 240.583869] [<ffffffff810b3bdd>] ? sync_page+0x0/0x46 [ 240.585034] [<ffffffff810b3bdd>] ? sync_page+0x0/0x46 [ 240.586087] [<ffffffff812f9939>] ? io_schedule+0x73/0xb7 [ 240.587287] [<ffffffff810b3c1e>] ? sync_page+0x41/0x46 [ 240.588202] [<ffffffff812f9e46>] ? __wait_on_bit+0x41/0x70 [ 240.589314] [<ffffffff810b3da2>] ? wait_on_page_bit+0x6b/0x71 [ 240.590630] [<ffffffff81064a1c>] ? wake_bit_function+0x0/0x23 [ 240.591906] [<ffffffff810bb9ea>] ? pagevec_lookup_tag+0x1a/0x21 [ 240.592954] [<ffffffff810b4577>] ? wait_on_page_writeback_range+0x69/0x11b [ 240.594403] [<ffffffff810b536e>] ? filemap_write_and_wait+0x26/0x32 [ 240.595563] [<ffffffffa02c0d35>] ? nfs_setattr+0xb9/0x117 [nfs] [ 240.596670] [<ffffffff810b3a0b>] ? find_get_page+0x1a/0x77 [ 240.598012] [<ffffffff810b3bb9>] ? lock_page+0x9/0x1f [ 240.598878] [<ffffffff810b41ee>] ? filemap_fault+0xb9/0x2f6 [ 240.599839] [<ffffffff810ca3c2>] ? __do_fault+0x38c/0x3c3 [ 240.601003] [<ffffffff810ee1ce>] ? do_sync_write+0xce/0x113 [ 240.602082] [<ffffffff81051e75>] ? current_fs_time+0x1e/0x24 [ 240.602968] [<ffffffff811009b7>] ? notify_change+0x180/0x2c5 [ 240.604245] [<ffffffff8110b7b5>] ? utimes_common+0x12d/0x14d [ 240.605355] [<ffffffff8110b856>] ? do_utimes+0x81/0xca [ 240.606558] [<ffffffff8110b9ab>] ? sys_utimensat+0x5b/0x6a [ 240.607817] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b [ 240.609124] INFO: task find:1866 blocked for more than 120 seconds. [ 240.610409] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 240.612066] find D 0000000000000000 0 1866 1863 0x00000000 [ 240.613490] ffffffff8145d1f0 0000000000000086 0000000000000000 ffff88011e2d2350 [ 240.615188] 00000022b63d07c7 ffff88011c55e000 000000000000f9e0 ffff8800c78a5fd8 [ 240.616576] 0000000000015780 0000000000015780 ffff88011e2d2350 ffff88011e2d2648 [ 240.618297] Call Trace: [ 240.618777] [<ffffffff810e5369>] ? virt_to_head_page+0x9/0x2a [ 240.619906] [<ffffffff812fa07a>] ? __mutex_lock_common+0x122/0x192 [ 240.621324] [<ffffffff812fa1a2>] ? mutex_lock+0x1a/0x31 [ 240.622543] [<ffffffff81102c11>] ? mntput_no_expire+0x23/0xee [ 240.623860] [<ffffffffa02c0b03>] ? nfs_getattr+0x3b/0xda [nfs] [ 240.625219] [<ffffffff810f1839>] ? vfs_fstatat+0x43/0x57 [ 240.626290] [<ffffffff810f185e>] ? sys_newfstatat+0x11/0x30 [ 240.627594] [<ffffffff81102c11>] ? mntput_no_expire+0x23/0xee [ 240.628768] [<ffffffff8101195b>] ? device_not_available+0x1b/0x20 [ 240.629644] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude BalloonMichael S. Tsirkin
maintainerQuoted 18 lines · Leszek Urbanski
<[email protected]>; from Michael S. Tsirkin on Sun, Sep 26, 2010 at 17:43:24 +0200
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?
Quoted 5 lines
(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have fixed it, or should I dissect?
bisect, yes: there were many UFO related patches since 2.6.32.
Signature · 1 line
MST
Michael S. Tsirkin
maintainerQuoted 18 lines · Leszek Urbanski
<[email protected]>; from Michael S. Tsirkin on Sun, Sep 26, 2010 at 17:43:24 +0200
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?
Quoted 5 lines
(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have fixed it, or should I dissect?
bisect, yes: there were many UFO related patches since 2.6.32.
Signature · 1 line
MST
A message that is not in the archive (sent off-list or not yet received): [email protected]
<[email protected]>; from Leszek Urbanski on Mon, Sep 27, 2010 at 23:32:03 +0200
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
Quoted 8 lines
Quoted 3 lines
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have
This one definitely fixes it: http://patchwork.ozlabs.org/patch/55643/
(Herbert Xu: udp: Fix bogus UFO packet generation)
The patch works with 2.6.32.24 too - it should probably be backported to 2.6.32.x.
Signature · 8 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude Balloon
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html<[email protected]>; from Leszek Urbanski on Mon, Sep 27, 2010 at 23:32:03 +0200
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
Quoted 8 lines
Quoted 3 lines
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have
This one definitely fixes it: http://patchwork.ozlabs.org/patch/55643/
(Herbert Xu: udp: Fix bogus UFO packet generation)
The patch works with 2.6.32.24 too - it should probably be backported to 2.6.32.x.
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude Balloon<[email protected]>; from Michael S. Tsirkin on Sun, Sep 26, 2010 at 17:43:24 +0200
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
It's vanilla 2.6.32.22, but I also reproduced this on Debian's 2.6.32-23 (based on 2.6.32.21).
If offload is the only difference, I'll play with different offload options and check which one causes it.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
It's not technically the only difference but it's the most likely culprit IMHO.
udp fragmentation offload is definitely the culprit.
I see. Most likely guest bug - won't be the first bug around UFO. If so pls copy netdev linux-nfs and virtualization.
Do you see anything in dmesg? Can try 2.6.36-rc5?
(for reference: first post is at:
http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01685.html )
I can't reproduce it on 2.6.36-rc5. Do you have an idea which patch may have fixed it, or should I dissect?
2.6.32.x - there's nothing interesting in dmesg, apart from traces related to tasks in D state waiting on the NFS mounts:
[ 84.396127] nfs: server 10.0.0.1 not responding, still trying [ 240.568162] INFO: task cp:1838 blocked for more than 120 seconds. [ 240.569715] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 240.571486] cp D 0000000000000002 0 1838 1831 0x00000000 [ 240.573340] ffff88011fa5b880 0000000000000082 0000000000000000 ffff88011e45bb44 [ 240.575508] ffff88011e45bcc8 ffffffff8102cdac 000000000000f9e0 ffff88011e45bfd8 [ 240.578827] 0000000000015780 0000000000015780 ffff88011c7ce2e0 ffff88011c7ce5d8 [ 240.580502] Call Trace: [ 240.581132] [<ffffffff8102cdac>] ? pvclock_clocksource_read+0x3a/0x8b [ 240.582427] [<ffffffff8102cdac>] ? pvclock_clocksource_read+0x3a/0x8b [ 240.583869] [<ffffffff810b3bdd>] ? sync_page+0x0/0x46 [ 240.585034] [<ffffffff810b3bdd>] ? sync_page+0x0/0x46 [ 240.586087] [<ffffffff812f9939>] ? io_schedule+0x73/0xb7 [ 240.587287] [<ffffffff810b3c1e>] ? sync_page+0x41/0x46 [ 240.588202] [<ffffffff812f9e46>] ? __wait_on_bit+0x41/0x70 [ 240.589314] [<ffffffff810b3da2>] ? wait_on_page_bit+0x6b/0x71 [ 240.590630] [<ffffffff81064a1c>] ? wake_bit_function+0x0/0x23 [ 240.591906] [<ffffffff810bb9ea>] ? pagevec_lookup_tag+0x1a/0x21 [ 240.592954] [<ffffffff810b4577>] ? wait_on_page_writeback_range+0x69/0x11b [ 240.594403] [<ffffffff810b536e>] ? filemap_write_and_wait+0x26/0x32 [ 240.595563] [<ffffffffa02c0d35>] ? nfs_setattr+0xb9/0x117 [nfs] [ 240.596670] [<ffffffff810b3a0b>] ? find_get_page+0x1a/0x77 [ 240.598012] [<ffffffff810b3bb9>] ? lock_page+0x9/0x1f [ 240.598878] [<ffffffff810b41ee>] ? filemap_fault+0xb9/0x2f6 [ 240.599839] [<ffffffff810ca3c2>] ? __do_fault+0x38c/0x3c3 [ 240.601003] [<ffffffff810ee1ce>] ? do_sync_write+0xce/0x113 [ 240.602082] [<ffffffff81051e75>] ? current_fs_time+0x1e/0x24 [ 240.602968] [<ffffffff811009b7>] ? notify_change+0x180/0x2c5 [ 240.604245] [<ffffffff8110b7b5>] ? utimes_common+0x12d/0x14d [ 240.605355] [<ffffffff8110b856>] ? do_utimes+0x81/0xca [ 240.606558] [<ffffffff8110b9ab>] ? sys_utimensat+0x5b/0x6a [ 240.607817] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b [ 240.609124] INFO: task find:1866 blocked for more than 120 seconds. [ 240.610409] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 240.612066] find D 0000000000000000 0 1866 1863 0x00000000 [ 240.613490] ffffffff8145d1f0 0000000000000086 0000000000000000 ffff88011e2d2350 [ 240.615188] 00000022b63d07c7 ffff88011c55e000 000000000000f9e0 ffff8800c78a5fd8 [ 240.616576] 0000000000015780 0000000000015780 ffff88011e2d2350 ffff88011e2d2648 [ 240.618297] Call Trace: [ 240.618777] [<ffffffff810e5369>] ? virt_to_head_page+0x9/0x2a [ 240.619906] [<ffffffff812fa07a>] ? __mutex_lock_common+0x122/0x192 [ 240.621324] [<ffffffff812fa1a2>] ? mutex_lock+0x1a/0x31 [ 240.622543] [<ffffffff81102c11>] ? mntput_no_expire+0x23/0xee [ 240.623860] [<ffffffffa02c0b03>] ? nfs_getattr+0x3b/0xda [nfs] [ 240.625219] [<ffffffff810f1839>] ? vfs_fstatat+0x43/0x57 [ 240.626290] [<ffffffff810f185e>] ? sys_newfstatat+0x11/0x30 [ 240.627594] [<ffffffff81102c11>] ? mntput_no_expire+0x23/0xee [ 240.628768] [<ffffffff8101195b>] ? device_not_available+0x1b/0x20 [ 240.629644] [<ffffffff81010b42>] ? system_call_fastpath+0x16/0x1b
Signature · 4 lines
Leszek "Tygrys" Urbanski, SCSA, SCNA
"Unix-to-Unix Copy Program;" said PDP-1. "You will never find a more
wretched hive of bugs and flamers. We must be cautious." -- DECWARS
http://cygnus.moo.pl/ -- Cygnus High Altitude Balloon