From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 25 May 2009 23:52:33 +0000 Subject: Re: Good news for threading! Message-Id: List-Id: References: <4A1AA131.7000202@tuffmail.co.uk> In-Reply-To: <4A1AA131.7000202@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Mon, May 25, 2009 at 22:28, Alan Jenkins wrote: > Kay Sievers wrote: >> Do you have numbers for the difference of threaded vs. non-threaded, for: >>  time (udevadm trigger; udevadm settle) >> when no rules are active? > Interesting question.  I stop HAL first, it tends to slow my tests down and > doesn't represent normal bootup. Yeah, it's the RUN+="socket: ..." handling, which can block the event process, if something listens, but does not read fast enough. With the new netlink events from udev to listeners (no RUN+="socket: ..." needed), the sending is de-coupled from the listeners state and will not slow-down udev. Hopefully HAL will go away soon, we are pretty close already. > Test machine is eeepc 701; trigger -n shows 382 devices. > > no threading:    ~0.5s > threading:   ~0.25s Oh, nice numbers. In a real setup, can we expect more than 0.25s to win with a threaded udevd? What can we expect from the udev-exec thing? Will it be a bit slower, because it has a bit more work to do? Thanks, Kay