dbus_connection_send_with_reply_and_block eats 100% CPU then eventually times out
Alex Brooks
a.brooks at marathon-targets.com
Sat Jan 31 13:59:16 PST 2015
On 01/02/15 03:12, Ralf Habacker wrote:
>
> Am 31.01.2015 um 16:10 schrieb Ralf Habacker:
>>
>> Am 31.01.2015 um 14:49 schrieb Ralf Habacker:
>>>> 5 19:27, "Ralf Habacker" <ralf at habacker.de
>>>> <mailto:ralf at habacker.de>> wrote:
>>>>
>>>>
>>>> Am 31.01.2015 um 05:04 schrieb Alex Brooks:
>>>> > Hi,
>>>> >
>>>> > I've been fighting for a long time with what now looks like a
>>>> libdbus
>>>> > bug.
>>>> > I have a cut-down test program which calls a dbus method of
>>>> > wpa_supplicant at 100Hz, it does this happily for several
>>>> hours then
>>>> > at some point the behaviour changes: any future calls sit at
>>>> 100% CPU
>>>> > for 25sec then time out.
>>>>
>> After running about 54 minutes I got:
>>
>> counts time (ms)
>> 300272 3245606 signalInfo rssi=-63
>> 300273 3245616 signalInfo rssi=-63
>> Error: wpa_supplicant DBus error in signalPoll: Did not receive a
>> reply. Possible causes include: the remote application did not send a
>> reply, the message bus security policy blocked the reply, the reply
>> timeout expired, or the network connection was broken.
>>
> second run gave same results:
> ...
>
> 300272 3548324 1 signalInfo rssi=-57
> 300273 3548413 79 signalInfo rssi=-59
> Error: wpa_supplicant DBus error in signalPoll: Did not receive a
> reply. Possible causes include: the remote application did not send a
> reply, the message bus security policy blocked the reply, the reply
> timeout expired, or the network connection was broken.
In my case when it's in this state, it consumes 100% CPU.
> Sounds as a kind of limits reached. The counts are collected as shown
> below:
>
> while ( true )
> {
> try {
> int a = timer.elapsed();
> int rssi = signalPoll( *netDevInterfaceInterface_ );
> int b = timer.elapsed();
> cout << i++ << " " << b << " " << (b-a) << " signalInfo
> rssi=" << rssi << endl;
> }
>
>> Ralf
>>
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>
--
------------------------------
Dr Alex Brooks
Marathon Targets Pty Ltd
Ph: +61 2 8090 7202
Web: www.marathon-targets.com
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20150201/9cb35f23/attachment.html>
More information about the dbus
mailing list