From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 28 Feb 2004 00:19:04 +0000 Subject: Re: hotplug for klibc utils Message-Id: <20040228001904.GA13580@kroah.com> List-Id: References: <200402271402.06890.arnd@arndb.de> In-Reply-To: <200402271402.06890.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Feb 27, 2004 at 02:29:20PM +0100, Hannes Reinecke wrote: > Arnd Bergmann wrote: > >Several people have run into problems when attaching large disk arrays to > >a mainframe because of running /sbin/hotplug as a bash script takes far > >longer than the interval between hotplug events. > > > >Attaching more than 300 devices at once will cause an out-of-memory > >condition and the kernel starts killing random processes. > > > >Running only udev instead of hotplug from the kernel is fast enough. > > > >The shell version currently does: > > > >>DIR="/etc/hotplug.d" > >>for I in "${DIR}/$1/"*.hotplug "${DIR}/"default/*.hotplug ; do > >> if [ -f $I ]; then test -x $I && $I $1 ; fi > >>done > >>exit 1; > > > And so it does. > > Just to double-check: > does this program also works for cases where the files in > /etc/hotplug.d/default > are scripts themselves? Then use the dietHotplug package to handle the autoloading of modules. Then you do not have any shell scripts in the picture at all. Hope this helps, greg k-h ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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