From: iSteve <isteve@rulez.cz>
To: linux-hotplug@vger.kernel.org
Subject: Re: overview of using hotplug in initrd
Date: Mon, 27 Feb 2006 18:19:46 +0000 [thread overview]
Message-ID: <20060227191946.5373462a@silver> (raw)
In-Reply-To: <Pine.LNX.4.64.0602221115450.27382@www.mutagenix.org>
On Mon, 27 Feb 2006 12:06:31 -0600
"Aaron Griffin" <aaronmgriffin@gmail.com> wrote:
> On 2/25/06, iSteve <isteve@rulez.cz> wrote:
> > I'm sure I'll be shouted at for being obsolete, but my way, in InitRD, is
> > to use now discontinued hotplug-ng (courtesy of Greg Kroah-Hartman, whom I
> > thank for great software) for hotplugging and to detect existing hw, I use:
> > for als in `cat /sys/bus/*/devices/*/modalias`; do modprobe $als; done
>
> Hmmm, that works for you? Here, I loop over
> /sys/bus/pci/devices/*/modalias and then do some ide/scsi specific
> detection. That is, I have no support for that stuff built into the
> kernel (you may be different).
> Also, it's a hair faster to build a module string in a loop and call
> "modprobe -a", as modprobe only needs to read the config files once,
> thus one call is better than ~10.
>
> iSteve, I'm curious as to your startup times, mine seem a tad slow,
> and I'd be interested in profiling this sort of stuff to make it
> faster.
Fast. With a generic, very very modular kernel, it spends only about two or
three seconds in initrd; most of the time is taken by IDE drives detection.
I, however, use a significant trick; I run the modprobes in a paralel fashion,
since the I/O wait is what takes so long.
-- iSteve
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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
next prev parent reply other threads:[~2006-02-27 18:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
2006-02-22 16:31 ` Marco d'Itri
2006-02-22 22:47 ` Chris Smith
2006-02-25 0:26 ` marrandy
2006-02-25 1:39 ` David Gómez
2006-02-25 6:31 ` iSteve
2006-02-27 18:06 ` Aaron Griffin
2006-02-27 18:19 ` iSteve [this message]
2006-02-27 18:25 ` Aaron Griffin
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=20060227191946.5373462a@silver \
--to=isteve@rulez.cz \
--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).