From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Tue, 07 Feb 2006 12:47:23 +0000 Subject: UDev startup 30-45s or more Message-Id: <43E896DB.2080506@rulez.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greetings, I've recently upgraded udev from 069 onto 084, and kernel from 2.6.13 onto 2.6.15.1. For coldplugging, I've implemented the init script mentioned on this mailing list, which writes "add" into uevent file for everything I want to have recognized by udev, ie. /sys/bus/*/devices/*/uevent /sys/class/*/*/uevent /sys/block/*/uevent /sys/block/*/*/uevent. This is approx. 700 files. Writing into all these files already takes approx. 10-15s, but I do not mind that, as I believe that can be optimised later. What I consider troublesome is that processing the queue takes over 20 more seconds, totalling at about 30-45 seconds, which is more than all other init scripts altogether. I wonder, how can I optimise it? What am I doing wrong? The init script creates /dev on tmpfs (the rootfs is read-only), runs udev --daemon and writes 'add' in correct order (as used on the init script posted on this mailing list) into the uevent files. Then waits 20 seconds or until /dev/.udev/queue disappears, whichever comes first (unfortunately, /dev/.udev/queue doesn't disappear in the given time). I am using udev to load modules as well, however, it has no effect if I have loaded them prior to running udev. Thanks in advance for any help. -- iSteve ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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