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 2154127

Summary: [RFE] Expose discard_granularity
Product: Red Hat Enterprise Linux 9 Reporter: Germano Veit Michel <gveitmic>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
libvirt sub component: Storage QA Contact: Han Han <hhan>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: jsuchane, jtomko, kwolf, lmen, pkrempa, vgoyal, virt-maint
Version: 9.1Keywords: FutureFeature, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-01 14:12:41 UTC Type: Feature Request
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: 2020998    
Bug Blocks:    

Description Germano Veit Michel 2022-12-15 22:22:42 UTC
Description of problem:

A fix for BZ202099 requires setting discard_granularity to > 8M (default 4k if unset) for the VM disks with discard support, otherwise the discard is just too slow and resource consuming for Windows guests.

Currently this is available only in qemu command line. Please consider adding this to libvirt domain definition so it can be set to a better value by customers and layered products.

Comment 2 Germano Veit Michel 2022-12-15 22:23:19 UTC
I found this, but it seems it was forgotten: https://patchew.org/Libvirt/20200616075438.5726-1-lma@suse.com/20200616075438.5726-2-lma@suse.com/

Comment 3 Germano Veit Michel 2022-12-15 22:24:39 UTC
(In reply to Germano Veit Michel from comment #0)
> A fix for BZ202099...

Typo, its BZ2020998

Comment 7 Peter Krempa 2023-03-01 14:12:41 UTC

*** This bug has been marked as a duplicate of bug 1849570 ***