-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
[Bug Report] Slow scan with large libraries on Hyper-V Docker (Windows) #79
Comments
Wow, I have never tested it with such a huge library. I will try to fill my library with dummy cbz files and find the performance bottleneck. Thanks for the report 👍 |
@hkalexling - I'm not sure if this is related, but my Home page takes quite a while to load up, yet the Library page doesn't. I only have 11 series (total of 1100 entries) and both pages show the whole amount, so not sure why the Home page is taking 10x longer to load. Here's a screen of the breakdown for the single longest load item. Let me know if you want to open a separate issue for this. Considering they're both load time related, thought it would be worth dropping here as well just in case. Can provide more info either way as well, just let me know if you'd rather it here or it's own thread. |
@cglatot The issue you mentioned has a different cause, so I've opened #81 for it. Thanks for reporting!
This is strange. I have never experienced this even when testing with a huge library. The load time has always been consistent. I will focus on the main issue here (long scan time) and then we will see if the problem you described still persists. |
The scan performance has been improved in v0.7.2. I have tested it with a library containing 50 titles and 50,000 entries, and the scan completed within 30 seconds. It's still not ideal, and I will keep this issue open and find some other ways to optimize it. |
@hkalexling Bad... I took the phantom test I was talking about. |
This looks like a common issue: docker/for-win#188. When scanning, Mango has to perform heavy read/write operations on files in the shared volume. I don't use Windows so hopefully @jaredlt can answer your questions. I have some ideas to optimize the scan time and I will work on it soon. |
@zFerry98 Do you mean where you store your library? This is a bit of a tricky question depending on which version of WSL you use. See: https://docs.microsoft.com/en-us/windows/wsl/compare-versions Basically, if you use WSL1 (formerly just WSL), it has better IO if you leave your files in the Windows file system. So you can store you library on another drive if you wish, but yes, the main Linux distro would still be in If you use WSL2, it has much better performance if you store your files within the Linux file system. It seems you can access the distro Home directory from Windows using Regarding running the service at startup, there are ways to do this:
Hope that helps! |
@jaredlt OK then. The Docker website says it is (rightly) not made for production. the performance issue with host paths is known. However, Hyper-V's performance sucks regardless of docker. |
@zFerry98 I just released v0.7.3, which is 32-bit compatible. I don't have a 32-bit machine so I tested it with an i386 Ubuntu docker image and it works great. There's no pre-built binary or docker image for i386 at this moment, so you will have to compile from source, but I am happy to help if you encounter any issues. |
@jaredlt So I went to test WSL (1). First thing, on the windows server the microsoft store is not there, so thanks to this you can install where you want the official distro (on the microsoft docs website there is the link for Ubuntu 20.04.appx that just change ".appx" in ".zip" and extract zip where you want to install the distro, Ex: @hkalexling |
@zFerry98 Glad to know that it's working now! Just curious, how long does the scan take on WSL1? |
Hi there! The issue has been fixed in v0.24.0. Thanks for the bug report! |
Describe the bug
With a library of 35,000 files (35 series ... LOL) when the rescan starts it takes 9 to 20 30 minutes before you can do anything (even access the site itself). Practically it seems that every time there is to scan the library until the website finishes, it doesn't give any signs of response ... in fact, give connection errors.
To Reproduce
Steps to reproduce the behavior:
Create a large serial zip library.
Load it and see that after the first scan the second and subsequent ones block everything.
The library just download with MangaDownloader from the supported sites with setting to create CBZ in .zip with 9 compression and maximum quality (http://redsquirrel87.altervista.org/doku.php).
Expected behavior
Don't get stuck for 20 minutes :)
Environment (please complete the following information):
Docker
docker-compose.yml
file:version: '3'
services:
mango:
image: hkalexling/mango
container_name: mango
expose:
- 25570
ports:
- 25570:25570
volumes:
- ./library:/root/mango/library
- ./config:/root/.config/mango
- ./Data:/root/mango
Additional context
Configuration errors are due because I was wrong to update the conf.
Clean installation of 0.7.1 from docker with docker-compose. 2GB ram 1gb Swap 1CPU (standard config of docker VM).
Server 16gb RAM, 2 CPU Xeon L5630.
There are certainly enchanaments as a translation of "entry" for everything with Chapters, Volumes / Issues and features to tell him that the Extra folders are not volumes but only extras (like 2 versions of the chapter in 2 different languages or extra chapters which, however, are not are part of the official volumes). Or a writing of the total chapters on the main page of the open series and the possibility of adding a plot and year but they are all things that come after XD. Sorry for my english.
The text was updated successfully, but these errors were encountered: