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: rc   
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 ***