-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extremely slow sync #16
Comments
First of all, thank you trying Neverest. I'm sorry about your bad experience. I just tried again to sync my Gmail account (~4Gb) using master (
|
Thanks, I'm trying again with the filter, and will report back if that improves performance or not.
My understanding from #9 (comment) was that the default was the number of CPUs (32 in my case), so I tried the default and lowering it to 4 in case the server was applying some kind of rate limit, but that did not have any perceptible effect on performance. |
Algorithm was improved since then, it does not rely on the number of CPUs anymore. This is now managed by the runtime. The option actually controls the number of clients in the pool, it needs to be adjusted depending on your performances. I tested with 8, and since we have a similar setup I believe it should work for you as well. Let me know. |
I have an impression that listing envelopes is what takes a very long time, not fetching the messages themselves.
#19 Would might gain a bit more visibility.
|
It's currently running for about 2 hours, and has created about 1,2 GB of email data. Folder progressions show between 4 and 16%. |
Indeed sth is wrong, it should not take that long. Did you try with only 1 folder, for example the INBOX? How long takes an initial sync with mbsync on your same account? |
I just tried, and it takes about 5-10 seconds, but I only have 30 mails in it.
I did a backup from scratch a long time ago with mbsync, and then I ran a periodic script to only update the maildir. I remember the initial sync was long, but "more than an hour long", not "several days and still running long". The weekly update took 2 or 3 minutes to complete, whereas neverest takes a lot more than that in "Listing envelopes" state before actually writing any emails. |
By any chance, do you have Gmail tags or aliases? If so then try to pick only the real mailboxes your are interested in, without them. Otherwise I don't see anything else that could prevent Neverest to go faster for you, especially that we have a similar setup and that I do not reproduce this slowness. How do look like your mailboxes? Do they contain heavy messages (huge attachments)? Or mostly text? |
Not sure what you mean by aliases. GMail has no concept of folders, only tags, and yes I have many of them, on one or two levels, but they don't overlap so they should map 1-1 with IMAP folders. |
Email size seems to be the most decisive factor, I just synced about 6k emails with PNG images at ~600 KB/s, whereas its 1/10 of the network speed for small emails. |
I do not get what is going wrong. The initial sync is literally just about downloading messages, nothing fancy. I will investigate further as soon as I approach the v1. |
For what it is worth, I tried again with a fresh mbsync config and I get 1-10 MB/s download speeds, much faster than neverest. |
Hi,
I'm trying this project to replace a previous isync/mbsync based setup, to backup GMail accounts.
The first run experience is flawless with the wizard, however the performance of the following sync operation is abyssal compared to mbsync.
For a GMail account with 7.5 GB of content (according to Google), this is my experience so far:
My system has a 32 cores CPU, and a 1Gb/s fiber network link. I'm using a version compiled from master branch, with a configuration identical to the suggested one for Gmail.
left.backend.root-dir
is set to atmpfs
mount. I tried loweringright.backend.clients-pool-size
to2
, but that did not help.Any suggestion to improve performance is welcome.
Thanks
The text was updated successfully, but these errors were encountered: