+ Add Question

CPU usage even when idle

SS

I noticed the thunderbird add-in steadily consuming a small percentage of my CPU resources (around 3%) even when I'm not doing anything with it.
While this doesn't sound like much, it could well drain my battery and all in all I just wonder what Todoist is doing with 3% of my CPU.

It happens *only* while the Todoist pane is open, so I'm pretty sure it's connected to the Todoist Add-In.
I did not observe the behaviour with the web-site in chrome or firefox.

All responses

David Trey staff
Replied on Apr 07, 2014 - 14:13

Hello Steffen,

Unfortunately, I can't reproduce this. I've observed the stats in Windows Task Manager and it does use some CPU the moment you open it, but then it goes down to 0% shortly thereafter.

That said, are you also using Todoist elsewhere at the same time? If you do, then please note that we're using Comet for pushing updates from our end to refresh the view on all platforms so if you're making any change to your list on a phone, for example, and have the pane opened, it will force-sync it which could indeed use some CPU for a moment.


Best regards,
David

SS
Steffen Schuldenzucker premium
Replied on Apr 07, 2014 - 14:48

David,

Ok, that's odd. I'm on Linux here (thunderbird-24.4.0 on LUbuntu 13.10 (saucy)).
So maybe it's a thunderbird issue?

Not using Todoist on a separate device.

Thanks a lot.
BR, Steffen

David Trey staff
Replied on Apr 07, 2014 - 16:33

Steffen,

Could be a Thunderbird issue. Are you using any other apps that could cause this? For example, something that monitors network activity and "pings" the Todoist site periodically or an anti-virus software trying to analyze it all the time?


Best regards,
David

SS
Steffen Schuldenzucker premium
Replied on Apr 07, 2014 - 16:49

No specialities here I would know of.
No anti-virus scanner or personal firewall either.

I also tried deactivating all other thunderbird extensions I use (EDS Contact Integration, Messaging Menu and Unity Launcher, Stylish), but that didn't help.

David Trey staff
Replied on Apr 07, 2014 - 16:52

Steffen,

So far we can't reproduce this :-( I don't have a Linux box at hand right now, on Windows it does literally nothing on idle.

Please tell me - do you see a 3-bar "pending" animation at the top of the Todoist plugin? Also, aside from CPU usage, do you also see any network activity when the plugin shows up?


Best regards,
David

SS
Steffen Schuldenzucker premium
Replied on Apr 07, 2014 - 20:44

David,

No "pending" animation here, except for a brief moment when I start the plugin or after I added lots of tasks.
Connections look like a block if this, every couple of seconds (I hope this doesn't get messed up):
$ netstat -Wcput 2>/dev/null | grep thunderbird | grep http
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird
tcp 0 0 shadowfax.local:41906 ec2-184-72-38-75.us-west-1.compute.amazonaws.com:https ESTABLISHED 24289/thunderbird

I was able to drive the problem to an extreme by adding lots of tasks (like, 100). This drives up CPU to 10% or so (I remember I was able to get 20% even at some point).

I like Todoist and would be willing to devote some time to debugging this, if that is possible (I guess Todoist is not open source ;-) ). You can also contact me via E-Mail.

Regards, Steffen

David Trey staff
Replied on Apr 07, 2014 - 22:52

Steffen,

That's interesting, I'll pass it to our devs who will hopefully be able to spot the cause :-)


Best regards,
David