Bug 1782528
Summary: | qemu-kvm: event flood when vhost-user backed virtio netdev is unexpectedly closed while guest is transmitting | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Adrián Moreno <amorenoz> | |
Component: | qemu-kvm | Assignee: | Adrián Moreno <amorenoz> | |
qemu-kvm sub component: | Networking | QA Contact: | Virtualization Bugs <virt-bugs> | |
Status: | CLOSED DUPLICATE | Docs Contact: | ||
Severity: | unspecified | |||
Priority: | medium | CC: | ailan, chayang, jasowang, jinzhao, juzhang, pezhang, virt-maint | |
Version: | 8.0 | |||
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1790360 (view as bug list) | Environment: | ||
Last Closed: | 2020-02-04 09:42:07 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1790360 |
Description
Adrián Moreno
2019-12-11 19:10:37 UTC
This issue was detected while testing BZ 1738768 top perf yields: Samples: 391K of event 'cycles:ppp', 4000 Hz, Event count (approx.): 117702907563 lost: 0/0 drop: 0/0gc Children Self Shared Object - 93.23% 65.50% qemu-system-x86_64 - 7.05% 0x2af0970 g_main_context_dispatch aio_ctx_dispatch aio_dispatch aio_dispatch_handlers virtio_queue_host_notifier_read virtio_queue_notify_vq virtio_net_handle_tx_bh - virtio_net_drop_tx_queue_data - 13.68% virtqueue_drop_all - 25.91% virtqueue_push - 9.96% virtqueue_fill + 5.31% vring_used_write 2.03% virtqueue_unmap_sggc + 1.35% trace_virtqueue_fillgc - 8.85% virtqueue_flushgc - 7.37% vring_used_idx_setgc - 3.09% address_space_cache_invalidategc + 2.54% invalidate_and_set_dirtygc - 1.59% virtio_stw_phys_cachedgc + 2.03% stw_le_phys_cachedgc 0.95% vring_get_region_cachesgc 8.58% rcu_read_unlockgc 4.43% rcu_read_lockgc - 4.61% virtqueue_get_headgc - 1.85% vring_avail_ringgc - 1.31% virtio_lduw_phys_cachedgc - 1.39% lduw_le_phys_cachedgc - 1.23% address_space_lduw_le_cachedgc - 0.95% lduw_le_pgc 2.01% virtio_queue_emptygc + 4.20% qemu_thread_startgc So I guess: - it's taking a lot to drop all the packets (maybe because the guest is still writing to the queue) - a lot of guest notifications are being received +Jason Updating with some findings. It's not an infinite loop (although it seems that way), it's more an event flood. The issue that IMHO could be fixed is that notifications are left enabled when the backend closes, I'll look more deeply into that. On the other hand, the question remains: why would testpmd keep sending notifications (i.e: trying to transmit) when the link has gone down. So, the scope of this issue I guess is also limited by a having a misbehaving guest. Hi Adrián, 8.1.1 AV and 8.2.0 AV both hit this issue. Do you plan to fix this on 8.1.1? If yes, I'll clone a new one to rhel8.2. Thanks. Best regards, Pei Hi Pei. Yes, we'll need a bz on 8.1.1 as well. Thanks (In reply to Adrián Moreno from comment #6) > Hi Pei. Yes, we'll need a bz on 8.1.1 as well. > Thanks Thanks Adrián. I've cloned this BZ to RHEL8.2-AV. Bug 1790360 - qemu-kvm: event flood when vhost-user backed virtio netdev is unexpectedly closed while guest is transmitting |