[haiku-bugs] [Haiku] #13318: Old package activation states delay bootup

  • From: "jua" <trac@xxxxxxxxxxxx>
  • Date: Sun, 19 Feb 2017 20:30:41 -0000

#13318: Old package activation states delay bootup
--------------------------------+------------------------------
 Reporter:  jua                 |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  Unscheduled
Component:  System/Boot Loader  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 I recently noticed that booting Haiku had become a lot slower for me than
 it used to be, and the delay was happening in the early boot process, i.e.
 even before the boot screen icons appear. The boot would be delayed by
 10-20 seconds, during which the HDD light was continously on.

 Now I found the reason why: in `/boot/system/packages/administrative` I
 had accumulated >250 package activation state directories. The delay in
 early bootup was caused by the boot loader going through all these package
 states. After removing them, the bootup is now fast again.

 Since these activation states accumulate over time, we should...
 * Either add automatic cleanup of old states (or if there already is
 something like that, it needs improvement)
 * Or improve efficiency of the boot loader reading the state directories
 * Or both of the above :-)

--
Ticket URL: <https://dev.haiku-os.org/ticket/13318>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: