Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270937 - Init (openrc) too slow on startup due to "Caching service dependencies"
Summary: Init (openrc) too slow on startup due to "Caching service dependencies"
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: N/A
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-23 12:56 UTC by Robert Bradbury
Modified: 2009-10-11 09:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Bradbury 2009-05-23 12:56:03 UTC
It appears that the new openrc scripts perform some fancy "caching" operation.  Unfortunately on my system this can take 15-20 seconds.  In an era when most linux distributors are trying to make Linux boot faster, Gentoo seems to be heading in the other direction.  Ubuntu boots *significantly* faster on my machine compared with Gentoo, presumably in part due to this "Caching" operation.


Reproducible: Always

Steps to Reproduce:
1. Boot most recent version of linux with most recent baselayout-2 & /etc/init.d files.

Actual Results:  
System boots slowly and exhibits lengthy delays involving "Caching service dependencies".

Expected Results:  
System should boot at least as fast as it used to before the init & init.d upgrades were released.  Preferably Gentoo should boot at least as fast as Ubuntu.

My system also seems to be in a "confused" state in that in some cases (lvm and device-mapper) it seems to think it is in baselayout-1 rather than baselayout-2 (which is what is installed).

Is there a way to fix this? (How does it determine the baselayout state?)
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-05-25 08:12:48 UTC
please emerge app-benchmarks/bootchart and reboot with "init=/sbin/bootchartd" in kernel command line. Then attach /var/log/bootchart.tgz.
Comment 2 Mike Auty (RETIRED) gentoo-dev 2009-05-26 22:32:46 UTC
Robert, your baselayout-1/baselayout-2 confusion is probably due to bug 270646, please CC yourself on that for any further information.

As to the caching issue, it shouldn't attempt a recache on every boot (as far as I'm aware), perhaps there are issues with your clock settings making it assuming the cache is out of date at every boot?
Comment 3 SpanKY gentoo-dev 2009-10-11 09:07:33 UTC
make sure you're using the latest openrc and during shutdown, it should save the cache state to disk.  so make sure you do a clean reboot.  you might also want to try running `rc-status` manually to force a sync.