[Bug 2065180] Re: performance regression in dracut-install 060
Benjamin Drung
2065180 at bugs.launchpad.net
Mon May 27 16:06:37 UTC 2024
Stock noble on a Raspberry Pi Zero 2W:
```
bdrung at zero3:~$ sudo hyperfine -r 5 "update-initramfs -u"
Benchmark 1: update-initramfs -u
Time (mean ± σ): 415.664 s ± 6.015 s [User: 166.728 s, System: 232.523 s]
Range (min … max): 409.139 s … 422.632 s 5 runs
```
Replace duplicate calls in thin-provisioning-tools, lvm2, and
cryptsetup:
```
bdrung at zero3:~$ sudo hyperfine -r 5 "update-initramfs -u"
Benchmark 1: update-initramfs -u
Time (mean ± σ): 375.805 s ± 5.753 s [User: 140.586 s, System: 218.345 s]
Range (min … max): 369.914 s … 382.866 s 5 runs
```
Suggested further reduction of dracut-install calls via
https://code.launchpad.net/~bdrung/ubuntu/+source/initramfs-
tools/+git/initramfs-tools/+ref/ubuntu/devel:
```
$ sudo hyperfine -r 5 "update-initramfs -u"
Benchmark 1: update-initramfs -u
Time (mean ± σ): 241.626 s ± 5.278 s [User: 60.018 s, System: 166.183 s]
Range (min … max): 235.136 s … 249.194 s 5 runs
```
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
Matching subscriptions: dracut
https://bugs.launchpad.net/bugs/2065180
Title:
performance regression in dracut-install 060
Status in Dracut:
New
Status in cryptsetup package in Ubuntu:
New
Status in dracut package in Ubuntu:
New
Status in lvm2 package in Ubuntu:
Fix Released
Status in thin-provisioning-tools package in Ubuntu:
Fix Released
Bug description:
When compared to Ubuntu 23.10, creating intramfs files with update-
initramfs takes 2 to 5 times more time on ARM devices.
IIUC, dracut-install usage was added to initramfs-tools to speed up
the process. But now its way slower. Even running update-initramfs on
jammy, which doesn't use dracut-install, is way faster then the time
taken on Noble.
first bad commit -
https://github.com/dracutdevs/dracut/commit/3de4c7313260fb600507c9b87f780390b874c870
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04 LTS
Release: 24.04
$ apt-cache policy dracut-install
dracut-install:
Installed: 060+5-1ubuntu3
Candidate: 060+5-1ubuntu3
Version table:
*** 060+5-1ubuntu3 500
500 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/dracut/+bug/2065180/+subscriptions
More information about the foundations-bugs
mailing list