We use coldplug to autoload the drivers for our USB/PCI devices in runlevel boot, which leads to our system suffering masses (5-15/second) hotplugevents on pci. This does not stop after boot and eats up nearly all ressources of our system. We use: Software udev-050 hotplug-20040923 coldplug-20040920 baselayout-1.11.9-r1 Hardware Intel P4 Serverboard 82875P/ICH5R Chipsets SATA SW RAID1 ATI RAGE XL onboard GC 82547EI/82562EZ Ethernet Controller (e1000/eepro100) After several hours of debugging, we found the following: using udev > 048, /sbin/rc sets up /sbin/udevsend as hotplug-handler in /proc/sys/kernel/hotplug. /etc/hotplug/pci.rc keeps on using the defaulthandler /sbin/hotplug. invoking "/etc/hotplug/pci.rc start" after switching to /sbin/udevsend as hotplug-handler makes udevsend fire up masses of synthetic hotplugevents for the pci bus and eats up nearly all of our system ressources. the firing of hotplug events can be stopped by altering the hotplug- handler in /proc/sys/kernel/hotplug and cannot be triggered again by invoking /etc/hotplug/pci.rc start after bootup and stopping the hot- plug events. at the moment we do not know why this happens, but we found a solution which works - at least for our machine. the solution to this is to make pci.rc use the hotplug-handler from /proc/sys/kernel/hotplug for firing up synthetic hotplugevents to trigger device inititalisation/module loading/devnode generation and not the default one on coldplug invocation. We propose the attached patch to /etc/hotplug/pci.rc to fix our problem and would be glad to receive some feedback if our machine is the only one to suffer from this or if the patch could be included with the next ver- sion of hotplug. Yours, Andre Lammel
Created attachment 50324 [details, diff] patch to /etc/hotplug/pci.rc patch to /etc/hotplug/pci.rc to use system hotplug-handler in pci.rc
Created attachment 50335 [details, diff] patch to /etc/hotplug/pci.rc this is the corrected version - the udev version stuff was from an earlier version of the fix and shamelessly boroughed from /sbin/rc...
This should be fixed in the 089 release. If not, please let me know.