Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1955608

Summary: [RFE] qemu-img convert performance with VMDK and streamOptimized is poor
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: amashah
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: Storage QA Contact: Xueqiang Wei <xuwei>
Status: CLOSED WONTFIX Docs Contact:
Severity: high    
Priority: unspecified CC: chayang, coli, jinzhao, juzhang, virt-maint
Version: ---Keywords: RFE
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.5   
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: 2021-05-06 13:16:17 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 amashah 2021-04-30 14:13:28 UTC
Description of problem:
Performance when converting an image to vmdk streamOptimized subformat is slow.

For example, we can see when using the default subformat (monolithicSparse), it only takes 5 seconds for this image:

# time qemu-img convert -p -f qcow2 -O vmdk 93e9d789-d539-440c-9e49-e06f0842b734.1G.qcow2  93e9d789-d539-440c-9e49-e06f0842b734.1G.qcow2.vmdk
    (100.00/100%)

real	0m5.215s
user	0m0.627s
sys	0m4.300s



The same conversion, but with -o streamOptimized takes 42 seconds:

# time qemu-img convert -p -f qcow2 -O vmdk -o subformat=streamOptimized 93e9d789-d539-440c-9e49-e06f0842b734.1G.qcow2  93e9d789-d539-440c-9e49-e06f0842b734.1G.qcow2.vmdk
    (100.00/100%)

real	0m42.431s
user	0m32.881s
sys	0m8.397s



Version-Release number of selected component (if applicable):
# rpm -q qemu-img
qemu-img-5.1.0-14.module+el8.3.0+8790+80f9c6d8.1.x86_64


Similar results in RHEL 7, with qemu-img-rhev-2.12.0-48.el7_9.1.x86_64

How reproducible:
100%


Attempts to use '-m 16' and '-t unsafe' were made, but did not improve results.


Actual results:
streamOptimized vmdk conversion is slow

Expected results:
better performance 

Additional info:

From what I understand, streamOptimized is a compressed monolithicSparse, I assume this adds overhead to the operation, but this amount of overhead seems substantial.

Are there any options that can be used to improve this? 

The issue for a customer is moving an OCP deployment from RHV to VMWare, and the conversion takes longer than the afforded downtime allots.

Comment 3 Ademar Reis 2021-05-06 13:16:17 UTC
We don't plan improvements and perhaps should not even support the creation of VMDK files (should be read-only).

I'm closing it as WONTFIX and will follow-up with our doc/PO team to check how to mark this unsupported, if it's not been already.

Comment 4 Ademar Reis 2021-05-06 13:21:28 UTC
See #1957782 (VMDK support to me changed to read-only)