Bug 707166
| Summary: | Hot unplug virtio disk costs more than 4 secs | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Mike Cao <bcao> |
| Component: | kvm | Assignee: | Alex Williamson <alex.williamson> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.7 | CC: | bcao, gcosta, juzhang, michen, mkenneth, qzhang, virt-maint |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-26 02:36:31 UTC | Type: | --- |
| 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: | 580948 | ||
|
Description
Mike Cao
2011-05-24 09:44:20 UTC
> 2.do hot-plug/hot-unplug virtio disk in a loop
> for ((i=1;i<=300;i++));
> do
> echo pci_add pci_addr=00:00:6 storage file=/home
> /tt,if=virtio,format=qcow2,cache=none |nc -U /tmp/tt;
> echo pci_del pci_addr=00:00:06 | nc -U /tmp/tt ;
> sleep 4;
> done
Would you please have a try adding sleep 2-4 after hot-add disks.
like
echo pci_add pci_addr=00:00:6 storage file=/home
/tt,if=virtio,format=qcow2,cache=none |nc -U /tmp/tt;
sleep 2-4;
echo pci_del pci_addr=00:00:06 | nc -U /tmp/tt ;
sleep 4;
or what's messages promoted when can not hot-unplug in 4 secs
Meet the same problem when hot unplug/plug virtio disk/NIC for 300 times. Can you elaborate about the failure? Any messages you see ? (In reply to comment #3) > Can you elaborate about the failure? > > Any messages you see ? if the device did not remove successfully (means 00:00:06 in use in this round ).in the next round when exec #echo pci_add pci_addr=00:00:6 storage file=/home /tt,if=virtio,format=qcow2,cache=none |nc -U /tmp/tt; guest will assign the pci address to 00:00:7 (In reply to comment #1) (In reply to comment #4) Tried following simple scripts ,the issue has gone. for ((i=1;i<=300;i++)); do echo pci_add pci_addr=00:00:6 storage file=/home /tt,if=virtio,format=qcow2,cache=none |nc -U /tmp/tt; sleep 1; //after hot plug sleep 1secs echo pci_del pci_addr=00:00:06 | nc -U /tmp/tt ; sleep 1; //after hot unplug sleep 1secs done I don't think it is a regression .It happened when pci_del executed before pci_add finish executed (in comment #0's scripts may cause it). Based on above ,I will close it as not a bug . |