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.
Description of problem:
I run the live migration for the 6 TiB guest with SAP HANA DB (idle scenario) and record the result of `virsh domjobinfo rhel84-hana` every 3 seconds,after I query the memory status and bandwidth, it shows that there are some long period (about 5 minutes) of low bandwidth every 5 minutes.
Please refer the chart:
https://docs.google.com/spreadsheets/d/1mJAppNyge7wQ1yR8SqKNDv_3Lel2iA3LWVq0KBldabc/edit#gid=1553189673
Version-Release number of selected component (if applicable):
Host: RHEL 8.6.z
Linux lenovo-sr950-02.lab.eng.pek2.redhat.com 4.18.0-372.27.1.el8_6.x86_64 #1 SMP Thu Sep 8 10:43:18 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
QEMU version:
QEMU emulator version 6.2.0 (qemu-kvm-6.2.0-11.module+el8.6.0+16538+01ea313d.6)
How reproducible:
Steps to Reproduce:
1. First time, execute live migrate with multi-fd and zero-copy, set downtime to 300ms. The cmd is: virsh migrate rhel84-hana qemu+tcp://192.168.10.20/system --live --parallel --parallel-connections 11 --migrateuri tcp://192.168.10.20 --verbose -bandwidth 999999999999999
2. The second time, execute live migrate with multi-fd and without zero-copy, set downtime to 1000ms. The cmd is :virsh migrate rhel84-hana qemu+tcp://192.168.10.30/system --live --parallel --parallel-connections 5 --migrateuri tcp://192.168.10.30 --verbose -bandwidth 999999999999999
3.
Actual results:
Expected results:
Additional info:
The script for querying and recording the memory status and bandwidth:
#!/bin/bash
echo "There are 3 output files:
1. temp.log -- All of the domjobinfo is saved in it
2. source_data.txt -- The data which is ready for google sheet
3. migrate+date.log -- temp.log + date
"
MIGRATE_COMMAND='virsh domjobinfo rhel84-hana'
FINISH='true'
FILENAME=migrate$(date +%Y%m%d)_$(date +%H%M%S)
TIME=`date +%m%d-%H%M`
touch $FILENAME.log
#If forget add $1, read it, then use $1
if [ -z $1 ]
then
read -p "Please specify the interval!" INTERVAL
else
INTERVAL=$1
fi
function make_log {
date>temp.log
$MIGRATE_COMMAND >> temp.log
cat temp.log >> $FILENAME.log
migrate_time=`sed -n "1p" temp.log | awk '{print $4}'`
#
# Get the unit name and convert to GiB, so if get TiB then * 1024 else if get MiB then / 1024 else print directly.
#
mem_processed=`sed -n "8p" temp.log | gawk '{if ($4 == "TiB") print $3 * 1024; else if ($4 == "GiB") print $3; else print $3 / 1024}'`
mem_remaining=`sed -n "9p" temp.log | gawk '{if ($4 == "TiB") print $3 * 1024; else if ($4 == "GiB") print $3; else print $3 / 1024}'`
mem_total=`sed -n "10p" temp.log | gawk '{if ($4 == "TiB") print $3 * 1024; else if ($4 == "GiB") print $3; else print $3 / 1024}'`
mem_bandwidth=`sed -n "11p" temp.log | gawk '{if ($4 == "GiB/s") print $3 * 1024 ; else print $3}'`
source_data=`echo -e "$migrate_time\t$mem_processed\t$mem_remaining\t$mem_total\t$mem_bandwidth"`
echo $source_data >> sourcedata$TIME.txt
}
while $FINISH; do
date >> $FILENAME.log
$MIGRATE_COMMAND >> $FILENAME.log
make_log
sleep $INTERVAL
TEST=$(virsh domjobinfo rhel84-hana 2>&1 |grep 'error')
if [ -n "$TEST" ]
then
FINISH='false'
echo 'Live migration completed!' >> $FILENAME.log
break
fi
done