Bug#294671: marked as done (ITP: hotplug-ng -- yet-another-hotplug based userspace project)
Your message dated Sat, 12 Nov 2005 13:44:06 +0100
with message-id <20051112124406.GA6209@wonderland.linux.it>
and subject line hotplug-ng is dead
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Feb 2005 00:58:13 +0000
>From md@linux.it Thu Feb 10 16:58:13 2005
Return-path: <md@linux.it>
Received: from attila.bofh.it [213.92.8.2] (postfix)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CzP8P-0007QQ-00; Thu, 10 Feb 2005 16:58:13 -0800
Received: by attila.bofh.it (Postfix, from userid 10)
id 237FC5F7A8; Fri, 11 Feb 2005 01:58:11 +0100 (CET)
Received: by wonderland.linux.it (Postfix, from userid 1001)
id 34F751C2E4; Fri, 11 Feb 2005 01:58:06 +0100 (CET)
Date: Fri, 11 Feb 2005 01:58:06 +0100
To: submit@bugs.debian.org
Subject: ITP: hotplug-ng
Message-ID: <20050211005806.GB20072@wonderland.linux.it>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj"
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
From: md@Linux.IT (Marco d'Itri)
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
--kORqDWCi7qDJ0mEj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Package: wnpp
Severity: wishlist
I plan to package hotplug-ng (license: GPL v2).
Probably the first uploads will go to experimental, because I think that
the program will change its interfaces frequently and will not be a full
hotplug replacement for a while.
Considering that I also maintain udev and module-init-tool (and
co-maintain hotplug) I think that I can do a good job at integrating
these core packages.
----- Forwarded message from Greg KH <gregkh@suse.de> -----
=46rom: Greg KH <gregkh@suse.de>
To: linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [ANNOUNCE] hotplug-ng 001 release
I'd like to announce, yet-another-hotplug based userspace project:
linux-ng. This collection of code replaces the existing linux-hotplug
package with very tiny, compiled executable programs, instead of the
existing bash scripts.
It currently provides the following:
- a /sbin/hotplug multiplexer. Works identical to the existing
bash /sbin/hotplug.
- autoload programs for usb, scsi, and pci modules. These
programs determine what module needs to be loaded when the
kernel emits a hotplug event for these types of devices. This
works just like the existing linux-hotplug scripts, with a few
exceptions.
But why redo this all in .c code? What's wrong with shell scripts?
Nothing is wrong with shell scripts, unless you don't want to have an
interpreter in your initramfs/initrd and you want to provide
/sbin/hotplug and autoload module functionality. Or if you have a huge
box that spawns a zillion hotplug events all at once, and you need to be
able to handle all of that with the minimum amount of processing time
and memory.
So, how small are these programs? Take a look:
text data bss dec hex filename
4669 32 124 4825 12d9 hotplug
5077 8 348 5433 1539 module_pci
4925 8 412 5345 14e1 module_scsi
5349 8 348 5705 1649 module_usb
Those are all static binaries, linked with klibc (which is included in
the hotplug-ng package, just like udev.)
This compares to the following bash scripts:
-rwxr-xr-x 1 root root 4412 Feb 10 15:28 /sbin/hotplug
-rw-r--r-- 1 root root 702 Sep 24 08:04 /etc/hotplug/blacklist
-rw-r--r-- 1 root root 5293 Sep 24 08:04 /etc/hotplug/hotplug.functions
-rwxr-xr-x 1 root root 3739 Sep 24 08:04 /etc/hotplug/pci.agent
-rwxr-xr-x 1 root root 1459 Sep 24 08:04 /etc/hotplug/scsi.agent
-rwxr-xr-x 1 root root 13466 Sep 24 08:04 /etc/hotplug/usb.agent
-rw-r--r-- 1 root root 39306 Sep 24 08:04 /etc/hotplug/usb.distmap
-rw-r--r-- 1 root root 4364 Sep 24 08:04 /etc/hotplug/usb.handmap
-rw-r--r-- 1 root root 189 Sep 24 08:04 /etc/hotplug/usb.usermap
All of which are loaded into memory for each hotplug event (for specific
hotplug events, only that bus type of file is loaded.)
But what about speed? With a completely unscientific measurement on my
old, slow laptop, it takes about 2 seconds from the time I plug a usb
device into the machine, for the proper module to be loaded. With the
hotplug-ng program, it takes less than a second.
And for those of you who might remember the old dietHotplug program that
also did the same thing in a tiny amount of space, this project
obsoletes that one. dietHotplug had to be rebuilt for every kernel that
was used on the system, hotplug-ng uses the ability for modprobe to
determine the module that needs to be loaded based on the module
aliases[1].
The code can be found at:
kernel.org/pub/linux/utils/kernel/hotplug/hotplug-ng-001.tar.gz
for those who wish to poke around in it.
I still have a few more programs to write to get it up to the same
functionality as the existing hotplug scripts (firmware, ieee1392, etc.)
but those will be done soon. I'd like to get people's comments on the
idea, and welcome suggestions and even patches :)
hotplug-ng development is done in a BitKeeper repository located at:
bk://linuxusb.bkbits.net/hotplug-ng
If anyone ever wants a tarball of the current bk tree, just email me.
thanks,
greg k-h
[1] modprobe as it currently works stops loading modules when it finds
an alias that matches. This does not work for drivers that claim to
support "all devices" and then later on fail on devices that they really
don't support. For that, all matching drivers need to be loaded for the
system to work properly. The linux-hotplug scripts handle this
correctly, so if you rely on this functionality, please stick with that
package for now. I'll be modifying modprobe to add this feature in the
near future.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&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
----- End forwarded message -----
--=20
ciao,
Marco
--kORqDWCi7qDJ0mEj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCDAMeFGfw2OHuP7ERAqQhAJ0dM6Ra0yKeVYHTm4w/USVwVh3usQCfWl1I
yUtpc9QGRtr6GaVQYsMM3G4=
=qKFB
-----END PGP SIGNATURE-----
--kORqDWCi7qDJ0mEj--
---------------------------------------
Received: (at 294671-done) by bugs.debian.org; 12 Nov 2005 12:44:16 +0000
>From md@Linux.IT Sat Nov 12 04:44:16 2005
Return-path: <md@Linux.IT>
Received: from attila.bofh.it ([213.92.8.2])
by spohr.debian.org with esmtp (Exim 4.50)
id 1Eaujv-0002mc-Rl
for 294671-done@bugs.debian.org; Sat, 12 Nov 2005 04:44:16 -0800
Received: by attila.bofh.it (Postfix, from userid 10)
id BC06C5F7A8; Sat, 12 Nov 2005 13:44:14 +0100 (CET)
Received: by wonderland.linux.it (Postfix, from userid 1001)
id 0F4821C2DB; Sat, 12 Nov 2005 13:44:06 +0100 (CET)
Date: Sat, 12 Nov 2005 13:44:06 +0100
To: 294671-done@bugs.debian.org
Subject: hotplug-ng is dead
Message-ID: <20051112124406.GA6209@wonderland.linux.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.11
From: md@Linux.IT (Marco d'Itri)
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Its functions have been merged in udev.
--
ciao,
Marco
Reply to: