From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Date: Fri, 27 Feb 2004 13:29:20 +0000 Subject: Re: hotplug for klibc utils Message-Id: <403F4630.1000203@suse.de> 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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. >=20 > Attaching more than 300 devices at once will cause an out-of-memory > condition and the kernel starts killing random processes. >=20 > Running only udev instead of hotplug from the kernel is fast enough. >=20 > The shell version currently does: >=20 >>DIR=3D"/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; >=20 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? Can't really see how this will help, since in that case we will have to=20 start bash anyway ... but what do I know ... Cheers, Hannes --=20 Dr. Hannes Reinecke hare@suse.de SuSE Linux AG S390 & zSeries Maxfeldstra=DFe 5 +49 911 74053 688 90409 N=FCrnberg http://www.suse.de ------------------------------------------------------- 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_id=1356&alloc_id438&op=3Dclick _______________________________________________ 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