From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udevstart compiled rules
Date: Sun, 14 Aug 2005 18:52:26 +0000 [thread overview]
Message-ID: <20050814185226.GA15587@vrfy.org> (raw)
In-Reply-To: <20050814062257.GA33928@active.ath.cx>
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
prev parent reply other threads:[~2005-08-14 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-14 6:22 udevstart compiled rules Amir Shalem
2005-08-14 18:52 ` Kay Sievers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050814185226.GA15587@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).