Patchwork [4/4,v2] udev: Add RRECOMMENDS for udev-cache to enable the cache

login
register
mail settings
Submitter Saul Wold
Date July 1, 2013, 8:48 p.m.
Message ID <be17effcbc2076d384a7ac882cdae817e4cbf4e9.1372711267.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/52761/
State New
Headers show

Comments

Saul Wold - July 1, 2013, 8:48 p.m.
This will enable the udev cache for sysvinit systems, which does improve post-first
boots.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/udev/udev.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Koen Kooi - July 2, 2013, 8:41 a.m.
Op 1 jul. 2013, om 22:48 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:

> This will enable the udev cache for sysvinit systems, which does improve post-first
> boots.

Can I please get some numbers on that? I haven't used it for years since it actually slowed down boot when I started measuring it and besides that, it's flakey as hell.

regards,

Koen
Qi.Chen@windriver.com - July 2, 2013, 9 a.m.
On 07/02/2013 04:41 PM, Koen Kooi wrote:
> Op 1 jul. 2013, om 22:48 heeft Saul Wold <sgw@linux.intel.com> het volgende geschreven:
>
>> This will enable the udev cache for sysvinit systems, which does improve post-first
>> boots.
> Can I please get some numbers on that? I haven't used it for years since it actually slowed down boot when I started measuring it and besides that, it's flakey as hell.
On my machine, a minimal image for qemux86 takes about 5 to 6 seconds 
for the udev to finish, with udev cache enabled, it takes less than 1 
second (of course, not for first boot).

//Chen Qi

>
> regards,
>
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>

Patch

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index d30f7de..6606707 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -54,7 +54,7 @@  INITSCRIPT_NAME_udev-cache = "udev-cache"
 INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
 
 FILES_${PN} += "${libexecdir} ${libdir}/ConsoleKit ${nonarch_base_libdir}/udev"
-RRECOMMENDS_${PN} += "udev-utils"
+RRECOMMENDS_${PN} += "udev-utils udev-cache"
 
 FILES_${PN}-dbg += "${libexecdir}/.debug"
 FILES_${PN}-dbg += "${base_libdir}/udev/.debug/"