-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Slow scan for libraries in rclone #118
Comments
Hi there, thanks for reaching out. It would be great if you let me know a few things to help diagnose the problem.
|
Thanks for getting back to me so quick,
|
Hmm, I still don't see how it takes so long. My only guess is that your library is quite large and it might be causing some issues here. My own library is 6GB and the scan takes 800ms. I will test it with a larger library and see if I can reproduce the issue. |
I just tested it with a library of size 62GB, and the scan finished within one minute, and I ran it in Docker so there's the additional IO overhead. Where did you get your manga files? Do you think you can send me a typical cbz file from your library so I can inspect and test? You can always email me at email@hkalexling.com. Thanks! |
Sent you an email |
Thanks for the email! You mentioned in the email that your library is in a rclone directory and I think that's the culprit. When scanning, Mango attempts to read the first page of each archive to see if it's corrupted, so in your case it would download every archive. It also creates an Let me think about it and see if we can make the corruption check optional. As a temporary workaround, I would suggest downloading some of the titles to your server so Mango can scan locally. |
Yeah I figured that would be the cause, I have all my media on an rclone directory so I would like to leave it that way in the long run. Take your time on the fix, glad we found the issue though |
I have the same problem, but I have a lot of comics, about 700g and 4000 copies. The scanning time is 50 minutes. But if you restart the container, it will be scanned again, and the scanning thumbnail will be stuck |
Hi @v1006945671, just to confirm - are you putting your library in an rclone directory as well? |
No, I use synology docker and put comics in the library. |
@v1006945671 I see. This issue is more about Mango's performance under rclone. I guess the title is a bit confusing so I am updating it now. Regarding your issue, I have never tested Mango with such a gigantic library, but I will see what I can do. Thanks for letting me know! |
I don't speak English very well, but I will try my best to feedback bugs. Thanks. |
I don't know if it's a bug. If there are too many comics, the memory usage will increase unlimited. My machine has 6GB of memory, so I have to limit it. |
@v1006945671 Are you saying that you are seeing a memory leak? If that's the case, it would be great if you could open a new issue because it's unrelated to the current thread. |
I tested the library that has 338 entries (4.61 GB) in Google Drive, mounted on SSD by rclone (using own project api) with the Mango v0.24.0 (cache enabled).
It's improved but need to be improved more.
|
@Leeingnyo Thanks for testing this! The initial scan is slow on rclone because Mango would attempt to decompress each entry to make sure they are readable, which means every file will be downloaded during the first scan. Perhaps we can allow users to disable the check from the config file. |
#215 would also be a nice workaround for this |
Love everything about mango but these scan times are insane, I haven't seen anyone else posting about this so I would assume its something unique to me but I'm unsure whats causing it. If you need anything from me let me know, I'll get back to you when possible.
The text was updated successfully, but these errors were encountered: