High CPU usage on large gmail attachments

Johannes Stezenbach js at sig21.net
Thu Oct 7 20:40:01 BST 2010


On Wed, Oct 06, 2010 at 03:59:22PM +0800, Ng Oon-Ee wrote:
> 
> I run offlineimap as a cron job (actually a script which checks whether
> offlineimap is running, if its not it starts it, every 5 minutes).
> 
> Recently (6.0.2+nmu) I've noticed that downloading emails with large
> attachments from gmail tends to make offlineimap consume 100% CPU (50%
> since I'm dual-core). This could be related with an update to python 2.7
> here (rather than python 2.6 previously).
> 
> Anyone experiencing the same? Any suggestions on debugging?

Do you mean 6.0.2+nmu or 6.2.0?  Try latest version.

Maybe you could try the profile option (-P).  To extract
useful information from the profile data you need to use
the pstats module.
http://docs.python.org/library/profile.html#instant-user-s-manual

HTH
Johannes




More information about the OfflineIMAP-project mailing list