Matthew Burgess wrote:
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).
Ubuntu is irrelevant here. My wild guess is that you removed the hotplug initscript, but forgot to remove stuff from /etc/hotplug.d and still have the run_hotplugd rule. This runs the agents for every uevent. Look how long it takes for an empty bash script to run 800 times on my Celeron 1200:
[EMAIL PROTECTED]:~$ echo '#!/bin/bash' >test.sh [EMAIL PROTECTED]:~$ time for a in `seq 1 800` ; do bash test.sh ; done real 0m9.157s user 0m7.044s sys 0m2.108s -- Alexander E. Patrakov -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
