From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Mon, 27 Feb 2006 18:19:46 +0000 Subject: Re: overview of using hotplug in initrd Message-Id: <20060227191946.5373462a@silver> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 27 Feb 2006 12:06:31 -0600 "Aaron Griffin" wrote: > On 2/25/06, iSteve 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&kid0944&bid$1720&dat1642 _______________________________________________ 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