[Bug 1965129] Re: flash-kernel is extremely slow on raspi

Launchpad Bug Tracker 1965129 at bugs.launchpad.net
Mon Apr 18 15:30:17 UTC 2022


This bug was fixed in the package flash-kernel - 3.104ubuntu9

---------------
flash-kernel (3.104ubuntu9) jammy; urgency=medium

  * Cache lookup of Bootloader-Has-Broken-Ext4-Extent-Support for significant
    performance improvement on Raspberry Pi (LP: #1965129)
  * Added note in db/all.db above Pi entries about "incorrect" DTB-Id
    (LP: #1928314)
  * Add raspi-nolpae kernel flavor to all supported boards (LP: #1962312)
  * Added entries for the Pi 4B rev 1.5, and moved CM4 and 400 models to their
    own entries for the sake of clarity
  * Include overlays/README in the files copied by Method: pi

 -- Dave Jones <dave.jones at canonical.com>  Mon, 18 Apr 2022 12:13:13
+0100

** Changed in: flash-kernel (Ubuntu Jammy)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/1965129

Title:
  flash-kernel is extremely slow on raspi

Status in flash-kernel package in Ubuntu:
  Fix Released
Status in flash-kernel source package in Jammy:
  Fix Released

Bug description:
  Currently flash-kernel takes at least 1 and a half minutes (on fast
  SSD storage) to execute on a Raspberry Pi. This is partly because a
  considerable number of files are transferred compared to other
  platforms (all supported dtbs, and their overlays, along with the
  kernel and initrd which totals several hundred copy operations in
  all). However, a large part of this is that "maybe_defrag" is called
  at the end of "backup_and_install".

  The "maybe_defrag" function checks the f-k database for the
  "Bootloader-Has-Broken-Ext4-Extent-Support" flag to determine whether
  a defragmentation run is required (it's not on Pi models).
  Unfortunately, it checks this *every time* and the check is fairly
  expensive (involves bash parsing the f-k database). If this value is
  cached (as many other values from the database are), this reduces the
  overall f-k runtime to ~22 seconds (again, on fast SSD storage).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1965129/+subscriptions




More information about the foundations-bugs mailing list