Alexander E. Patrakov wrote:

Result: if you turn the computer on with the flash drive already plugged in, the usb-storage module will not be loaded and you won't see the flash drive before you re-plug it.

Thanks Alexander.
http://marc.theaimsgroup.com/?l=linux-hotplug-devel&m=113147546806367&w=2
mentions what Kay would like to happen in this instance:

"That way, the whole coldplug is about 40 lines of shell
script in the udev boot script on SUSE now. It just writes to
every "uevent" file it finds, which will trigger the event to
load modules, setup the device and create the device node
at boot time. This script needs some improvement, but works
nice for a first cut."

http://ftp.jg555.com/udev/boot.udev has a trigger_device_events() function. This requires a 2.6.15-rc kernel (which we'd need anyway for proper input subsystem handling), but perhaps more importantly this adds approximately 10 seconds on to my boot times (compared to a completely non-modular kernel). This is an Athlon XP 2400+ that has to process 728 uevent files (well, that's the output of `find /sys -name uevent | wc -l` anyway) in order to load 5 modules. Did I screw something up here, or is this how slow a modular kernel really is (I note that Ubuntu is horribly slow to create devices and load modules too, though that's using a much older udev/hotplug/kernel combination so probably isn't a fair comparison).

Regards,

Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to