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.

Bug 2048460

Summary: Migration of Multiterabyte guests spend too much time on bitmap_test_and_clear_atomic()
Product: Red Hat Enterprise Linux 9 Reporter: Juan Quintela <quintela>
Component: qemu-kvmAssignee: Juan Quintela <quintela>
qemu-kvm sub component: Live Migration QA Contact: Li Xiaohui <xiaohli>
Status: CLOSED NOTABUG Docs Contact:
Severity: medium    
Priority: medium CC: aadam, chayang, coli, jinzhao, juzhang, nilal, nkoenig, virt-maint, yuhuang
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-25 10:03:55 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:

Description Juan Quintela 2022-01-31 10:02:12 UTC
Description of problem:

When we are migrating a Multiterabyte machine, we spend 24% of the time on that function.  We only use that function for the clear bitmap.


Version-Release number of selected component (if applicable):

All of them.


How reproducible:

100% with a multiterabyte guests.  We catched it when running HANNA Cool DB test.



Actual results:

There are times when we are not sending anything because we are waiting on the bitmap.

Expected results:

The operations on the bitmap shouldn't be noticed at all.  It is supposed that we only update one bit for each Gigabyte scanned.  We are updating one for each 4K page.

Additional info:

Comment 1 Li Xiaohui 2023-04-04 10:00:46 UTC
Hi Juan, Nitesh

(In reply to Juan Quintela from comment #0)
> Description of problem:
> 
> When we are migrating a Multiterabyte machine, we spend 24% of the time on
> that function.  We only use that function for the clear bitmap.
> 
> 
> Version-Release number of selected component (if applicable):
> 
> All of them.
> 
> 
> How reproducible:
> 
> 100% with a multiterabyte guests.  We catched it when running HANNA Cool DB
> test.
> 
> 
> 
> Actual results:
> 
> There are times when we are not sending anything because we are waiting on
> the bitmap.
> 
> Expected results:
> 
> The operations on the bitmap shouldn't be noticed at all.  It is supposed
> that we only update one bit for each Gigabyte scanned.  We are updating one
> for each 4K page.

According to the expected results, should we add the 'RFE' or 'FutureFeature' keyword for this bug? 
Please do it if I'm right.

> 
> Additional info:

Comment 2 Nitesh Narayan Lal 2023-04-06 16:13:59 UTC
(In reply to Li Xiaohui from comment #1)
> Hi Juan, Nitesh
> 
> (In reply to Juan Quintela from comment #0)
> > Description of problem:
> > 
> > When we are migrating a Multiterabyte machine, we spend 24% of the time on
> > that function.  We only use that function for the clear bitmap.
> > 
> > 
> > Version-Release number of selected component (if applicable):
> > 
> > All of them.
> > 
> > 
> > How reproducible:
> > 
> > 100% with a multiterabyte guests.  We catched it when running HANNA Cool DB
> > test.
> > 
> > 
> > 
> > Actual results:
> > 
> > There are times when we are not sending anything because we are waiting on
> > the bitmap.
> > 
> > Expected results:
> > 
> > The operations on the bitmap shouldn't be noticed at all.  It is supposed
> > that we only update one bit for each Gigabyte scanned.  We are updating one
> > for each 4K page.
> 
> According to the expected results, should we add the 'RFE' or
> 'FutureFeature' keyword for this bug? 

Does look like an RFE. Let's wait for Juan to confirm.

Comment 3 Li Xiaohui 2023-04-12 06:24:08 UTC
Hi Juan, 
As discussed in yesterday's Live migration meeting, please help to cLose the BZ. Thanks.

Comment 4 Juan Quintela 2023-04-25 10:03:55 UTC
Hi
This is a new feature, and I have "fixed" it someother way.
We can close it.

Comment 5 Li Xiaohui 2023-04-25 10:05:30 UTC
Thanks Juan.

Mark qe_test_coverage- due to it's notabug.