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 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


Back to the top