Active waiting?
Alvaro Gamez
alvaro.gamez at hazent.com
Mon Mar 23 12:01:12 GMT 2015
What a pity :(
If there's anything I can research on this to improve offlineimap please
let me know in which direction.
And you don't see this possible at all, would you happen to know about a
similar project to offlineimap which supports IDLE and does sleep without
consuming CPU?
Thanks!
2015-03-23 12:53 GMT+01:00 Sebastian Spaeth <Sebastian at sspaeth.de>:
> Nope, it waits for a signal, and python's implementation wakes up every
> few milliseconds. I would not see a way to work around that without risking
> infinite freezes.
>
> S.
> P.s. yes, it's clearly not optimal.
>
> Am 23. März 2015 11:21:36 MEZ, schrieb Alvaro Gamez <
> alvaro.gamez at hazent.com>:
>
>> Hi there
>>
>> I'm using offlineimap on a mobile device (Nokia N900) in IDLE mode to
>> sync with gmail.
>> Since I've started using it, I've noticed a significant drop in battery
>> life.
>>
>> By using powertop and top, I've deduced that offlineimap, even though is
>> waiting for the server to send out new emails via IDLE protocol, it's still
>> consuming CPU
>>
>> Top causes for wakeups:
>> Wakeups-from-idle in 10 seconds: 1314
>>
>> Top causes for wakeups:
>> 2.6% ( 500) <interrupt> : DMA
>> 1.6% ( 308) <interrupt> : gp timer
>> 1.0% ( 199) python2.7 : schedule_hrtimeout_range
>> (hrtimer_wakeup)
>>
>> I have no other python2.7 executable running, and when I stop offlineimap
>> this line dissappears, so I am positive this wakeups are due to some sleep
>> code inside offlineimap.
>>
>> Is there anything that can be done about this? Thanks! (I'm not
>> subscribed to the list, so please keep me in CC).
>>
>
> --
> Sent from mobile phone. Please excuse brevity.
>
--
Álvaro Gámez Machado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150323/060ec01a/attachment-0003.html>
More information about the OfflineIMAP-project
mailing list