Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
The problem is that when speed is set to '1', QEMU transmits a block of data and then realizes it has gone over quota, and so goes to sleep until the average rate/sec would come back under quota, in this case, 20-30 minutes in the future.
When setting the new throttle, we don't recalculate this delay. I'll fix upstream, but I don't believe this to be a regression.
Due to changes in the way block job sleep is implemented upstream in 2.11, this problem is now pretty easy to fix, so I've posted a patch upstream.
[subtext: this fix will require late 2.11-cycle fixes to backport.]
https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg01899.html
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:3443
Description of problem: Setting speed does not take effect when setting it to 1 first and then a normal value like 100000000 Version-Release number of selected component (if applicable): qemu-kvm-rhev-2.9.0-5.el7.x86_64 kernel-3.10.0-640.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Launch guest: /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' \ -vga cirrus \ -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=03 \ -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=raw,file=/home/kvm_autotest_root/images/rhel74-64-virtio-scsi.raw \ -device scsi-hd,id=image1,drive=drive_image1 \ -device virtio-net-pci,mac=9a:ac:ad:ae:af:b0,id=idqKTtyC,vectors=4,netdev=idBAxKKY,bus=pci.0,addr=04 \ -netdev tap,id=idBAxKKY,vhost=on \ -m 4096 \ -smp 4,cores=2,threads=1,sockets=2 \ -cpu 'SandyBridge',+kvm_pv_unhalt \ -vnc :0 \ -rtc base=utc,clock=host,driftfix=slew \ -boot order=cdn,once=c,menu=off,strict=off \ -monitor stdio \ -qmp tcp::5555,server,nowait 2. Live snapshot: { "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive_image1","snapshot-file": "/mnt/iscsi/sn1", "format": "qcow2", "mode": "absolute-paths" } } {"return": {}} { "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive_image1","snapshot-file": "/mnt/iscsi/sn2", "format": "qcow2", "mode": "absolute-paths" } } {"return": {}} { "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive_image1","snapshot-file": "/mnt/iscsi/sn3", "format": "qcow2", "mode": "absolute-paths" } } {"return": {}} 3. Live commit: { "execute": "block-commit", "arguments": { "device": "drive_image1", "base": "/mnt/iscsi/sn1", "top": "/mnt/iscsi/sn3"}} 4. Set speed to 1: { "execute": "block-job-set-speed", "arguments": { "device": "drive_image1","speed":1}} 5. Set speed to 100000000: { "execute": "block-job-set-speed", "arguments": { "device": "drive_image1","speed":100000000}} 6. Query block job: { "execute": "query-block-jobs"} Actual results: Block job stop increasing for more than half hour: { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} { "execute": "query-block-jobs"} {"return": [{"io-status": "ok", "device": "drive_image1", "busy": false, "len": 2188443648, "offset": 578355200, "paused": false, "speed": 100000000, "ready": false, "type": "commit"}]} Expected results: Block job speed 100000000 takes effect. Additional info: