Bug 2166686
| Summary: | enable multi-conn in nbdkit-curl-plugin | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Richard W.M. Jones <rjones> |
| Component: | nbdkit | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED ERRATA | QA Contact: | mxie <mxie> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.2 | CC: | eblake, lersek, mxie, rjones, tzheng, virt-maint, xiaodwan, yoguo |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nbdkit-1.32.5-4.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-09 07:47:50 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: | |||
| Deadline: | 2023-02-27 | ||
|
Description
Richard W.M. Jones
2023-02-02 16:18:26 UTC
One way to test this would be to create a large disk image, eg: $ virt-builder --size 10G fedora-36 and then compare copying the disk image before and after updating nbdkit using this command: $ time nbdkit -r curl file:/var/tmp/fedora-36.img --run 'nbdcopy -p "$uri" null:' It should be significantly faster (perhaps double) after the patch is applied. This change should also make virt-v2v faster when using the HTTPS method, but that is hard to measure. Reproduce the bug with nbdkit-1.32.5-3.el9.x86_64 Steps to reproduce: 1.Check if nbdkit curl filter is advertising multi-conn # nbdkit -r curl url='http://fileshare.englab.nay.redhat.com/pub/section3/libvirtmanual/mxie/esx8.0-rhel8.8-x86_64-sda' sslverify=false --run ' nbdinfo $uri ' | grep can_multi_conn can_multi_conn: false 2. Use nbdkit curl filter to download files from web server # time nbdkit -r curl url='http://fileshare.englab.nay.redhat.com/pub/section3/libvirtmanual/mxie/esx8.0-rhel8.8-x86_64-sda' sslverify=false --run 'nbdcopy -p "$uri" null:' █ 100% [****************************************] real 10m8.516s user 0m20.150s sys 0m51.184s Test the bug with nbdkit-1.32.5-4.el9.x86_64 Steps: 1.Check if nbdkit curl filter is advertising multi-conn # nbdkit -r curl url='http://fileshare.englab.nay.redhat.com/pub/section3/libvirtmanual/mxie/esx8.0-rhel8.8-x86_64-sda' sslverify=false --run ' nbdinfo $uri ' | grep can_multi_conn can_multi_conn: true 2. Use nbdkit curl filter to download files from web server # time nbdkit -r curl url='http://fileshare.englab.nay.redhat.com/pub/section3/libvirtmanual/mxie/esx8.0-rhel8.8-x86_64-sda' sslverify=false --run 'nbdcopy -p "$uri" null:' █ 100% [****************************************] real 7m59.417s user 0m23.561s sys 0m59.721s Result: multi-conn has been enabled in nbdkit-curl-plugin Move the bug to verified status according to comment2 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (nbdkit bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2347 |