mbsync slow gmail All Email folder with +100K emails

2022-04-18 Thread Martin Clausen
I am using mbsync (isync 1.4.4) on Ubuntu to sync Gmail imap to my local machine. The Gmail All Mail folder has +100K emails and takes a very long time to sync. Looking at the output from mbsync --debug there is not a lot of network traffic, but it appears that for EVERY email in the All Mail fold

Re: mbsync slow gmail All Email folder with +100K emails

2022-04-18 Thread Oswald Buddenhagen
On Mon, Apr 18, 2022 at 10:34:29AM +0200, Martin Clausen wrote: Looking at the output from mbsync --debug there is not a lot of network traffic, [...] So it appears that the slowness is local. that's weird, as mbsync is generally network-bound. Any idea how I can speed things up? not withou

Re: mbsync slow gmail All Email folder with +100K emails

2022-04-18 Thread Martin Clausen
OK. I captured the output of mbsync -D gamil | ts "%H:%M:%.S". It is approx 35 mb. I don't have much experience with analysing this kind of issue. What should I look for. Looks to me like the time is spent on a gigantic number of the 4 operations I listed all for the All Mail folder. On Mon, Apr