Re: [PATCH] udevd: Use a tighter loop in compare_devpath()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 25, 2008 at 18:42, Kay Sievers <kay.sievers@xxxxxxxx> wrote:
> On Sat, Oct 25, 2008 at 18:01, Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> wrote:
>> udevd: Use a tighter loop for compare_devpath()
>>
>> This crops up in my threaded udevd profiles from time to time.
>> It's not consistent - probably due to variations in the number
>> of concurrent events - but it can hit 4% user time and higher.
>
> Yeah, I've seen that too some times. Nice! Applied.

I've merged the udevd exec and run queue now to have always a sorted
list. We remember the seqnum of the last event that caused an event to
be delayed. Next time we need to check, we do not do the devpath
string compare for all the events that we already checked in the
earlier run. This saves us ~70% of the calls to compare_devpath().

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux