DNF/RPM will get faster in Fedora 34

One of the changes planned for Fedora 34 will be the use of dnf-plugin-cow, which speeds up the work of DNF / RPM due to the Copy on Write (CoW) technique implemented on top of the Btrfs file system.

Comparison of current and future methods of installing/upgrading RPM packages in Fedora.

Current method:

  • Break down the install/upgrade request into a list of packages and actions.
  • Download and check the integrity of new packages.
  • Consistently install/upgrade packages using RPM files, decompress and write new files to disk.

Future method:

  • Break down the install/upgrade request into a list of packages and actions.
  • Download and at the same time unzip packages in locally optimized RPM file.
  • Consistently install/upgrade packages using RPM files and reflinking to reuse data already on disk.

To implement link binding, use ioctl_ficlonerange(2)

The expected performance increase is 50%. More accurate data will appear in January.

Source: linux.org.ru