DNF/RPM Copy-On-Write Eyed For Fedora 34 To Speed Up Package Installation

Written by Michael Larabel in Fedora on 23 December 2020 at 08:03 AM EST. 13 Comments
FEDORA
Fedora 34 is shaping up to be another exciting Fedora Linux release on the feature front. Among the material to look forward to in this spring 2021 Linux distribution release is routing all audio through PipeWire by default, enabling systemd-oomd by default, an independent XWayland package, and more. The latest proposal involves making use of DNF/RPM copy-on-write support atop Btrfs with Fedora 34.

Fedora Workstation 33 initiated the move to the Btrfs file-system by default. With Fedora 34 is further taking advantage of Btrfs and its reflinking capabilities for supporting RPM copy-on-write to speed up package installations/upgrades.

The change proposal is led by Facebook engineers to modify RPM and librepo and ship a new "dnf-plugin-cow" plug-in to support RPM copy-on-write to reduce the amount of I/O and offset the CPU cost of package decompression. Under the tentative proposal, packages would be downloaded and decompressed inline during downloads into locally optimized RPM files. Reference linking "reflinking" would be employed to re-use data already on the disk.

This is a big system-wide change though and would involve modifications to the file format for RPMs. But those involved believe it could cut the RPM file download and installation time in half.

More details on this tentative Fedora 34 proposal via the Fedora Wiki.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week