Package: offlineimap
Version: 5.99.1
Severity: normal

I just tried a new mail reading model which involves storing all my
mail in a single folder. I am not yet convinced this is the right
way to do it, but in any case: offlineimap can't really deal with
it.

Right now, the folder contains 67k messages, and messages get added
locally most of the time (and thus have to be copied to the server).

I've always noticed that, despite asymmetric bandwidth, pushing
messages to the server always takes longer than pulling them, but
with 67k messages in the folder, the performance is now neigh
unacceptable, sometimes taking up to a minute for a single message.
Note that all messages are a few kilobytes only.

$ /usr/bin/offlineimap | ts
[...]
Aug 04 12:51:52 Copying folder structure from IMAP to Maildir
Aug 04 12:51:52 Establishing connection to tunnel:ssh -Caxo "KeepAlive = yes" 
-o "ProtocolKeepAlives = 10" -o "ConnectTimeout 20" -i 
~/.etc/offlineimap/id_dsa.imap seamus.madduck.net 'MAIL=$HOME/.maildir/ 
/usr/lib/dovecot/imap'.
[...]
Aug 04 12:52:47 Syncing store: IMAP -> Maildir
Aug 04 12:53:16 Copy message -1 Maildir[store] -> IMAP[store], 
LocalStatus[store]
Aug 04 12:54:00 Copy message -5 Maildir[store] -> IMAP[store], 
LocalStatus[store]
Aug 04 12:54:05 Copy message -4 Maildir[store] -> IMAP[store], 
LocalStatus[store]
Aug 04 12:54:58 Copy message -3 Maildir[store] -> IMAP[store], 
LocalStatus[store]

Please find the complete -1 -d imap,maildir log and strace at [0]
and [1] (they are too large to be attached; also please note that
these links expire 60 days after the last access) limited only to
this one Maildir:

  strace -t -T -o /tmp/offlineimap.strace \
    /usr/bin/offlineimap -1 -d imap,maildir -l /tmp/offlineimap.debuglog

0. http://scratch.madduck.net/__tmp__offlineimap.debuglog.bz2 2761596 
301fea57730bb6e72c705a646589b560
1. http://scratch.madduck.net/__tmp__offlineimap.strace.bz2 642306 
b2e3f0b3024294de9b3a18198ffe1b9f

In this run, three messages are pushed to the server and the S flag
is added to 12k messages, which times out after a really long time:

  Adding flags S to 11998 messages  on IMAP[store]
  Adding flags S to 11998 messages  on LocalStatus[store]
  imap(madduck): Info: Disconnected for inactivity

After the first two messages, the debuglog received absolutely zero
data, while strace seems to document some sort of deadlock
situation. The loop captured by strace continues to spin though.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages offlineimap depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.6.4      automated rebuilding support for p

offlineimap recommends no packages.

-- no debconf information

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to