linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevstart compiled rules
@ 2005-08-14  6:22 Amir Shalem
  2005-08-14 18:52 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Amir Shalem @ 2005-08-14  6:22 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

why does udevstart does not uses compiled rules (created by udevrulescompile)
when calling udev_rules_init() ? 

-- 
	Amir.


[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udevstart compiled rules
  2005-08-14  6:22 udevstart compiled rules Amir Shalem
@ 2005-08-14 18:52 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-08-14 18:52 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Aug 14, 2005 at 09:22:57AM +0300, Amir Shalem wrote:
> why does udevstart does not uses compiled rules (created by 
> udevrulescompile)
> when calling udev_rules_init() ? 

No special reason. udevstart is a single process, that runs once per
boot and parses the rules only a single time, so this does not give you
a real advantage.

I introduced the compiled rules as a _temporary_ hack, cause at SUSE we
do hotplug event replay from initramfs after the real root is mounted.
Normally there are 600-800 events to be passed to udevd to replay it and
every event needed to parse all the rules files again and again. The
compiled rules have been a bit faster at bootup time here.

In the meantime we moved the rules parsing into the udev daemon which
just fork()'s the event without exec() and the parsed rules are still
available for the child. This approach looks much better than the
precompiled rules, which have never been documented may not stay in
its current form.

Kay


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-14 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-14  6:22 udevstart compiled rules Amir Shalem
2005-08-14 18:52 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).