Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Paho C: MIPS CPU usage

Hi Ian,

I will switch to official release, as soon as it is out. 
I've added it inside the if statement, when ListFindItem returns NULL (MQTTClient.c:523).
Please, take a look on logs from the attachment. I'm not quite sure about differences. There are logs for configuration with and without 3 ms sleep. With logs activated, CPU goes up to 7% and 70%, correspondingly.

Milan

2016-03-31 15:09 GMT+02:00 Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx>:
Hi Milan,

the latest release is 1.0.3.  The develop branch does contain some additional fixes above that, which will be released soon.  While there have been some circumstances under which CPU usage is high, they have resulted from particular sequences of call, usually involving destroy().

Where exactly have you inserted the sleep?  My first suspicion is that the select call is returning immediately for some reason.  Can you take a trace of the situation?  (Set environment variable MQTT_C_CLIENT_TRACE=ON/filename)

Ian


On 03/30/2016 03:23 PM, Milan Tucic wrote:
Hi,

I'm currently using Paho C library on AR9531 MIPS 24Kc and it keeps CPU at 100%.
Due a synchronization problem, I've switched from master 1.0.2 to the develop branch and I'm using it with latest changes.
I have tested it again, after adding seep in MQTTClient loop and it resulted with lower/normal CPU usage.
Is there any known issue about this?

Best regards,
Milan


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

Attachment: paho_logs.zip
Description: Zip archive


Back to the top