-
Notifications
You must be signed in to change notification settings - Fork 65
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
Very slow loading of gallery list due to slow getDirectoryListing() on external storage #448
Comments
Updated the title, as we simply request a list of files using getDirectoryListing() |
File Locking results in slowing down stuff massively owncloud/core#19888 |
I'm not using external storage or the file locking app, but thumbnails are presented very slowly. Is it the same issue? The thumbnails are already generated. Hitting reload is painful. |
@setnes, if you're on 8.2, you're using the files locking app with the database backend. It's slow and there are bottlenecks. Make sure you install and use Redis. |
I just upgraded from 8.0 to 8.1 to 8.2, and had the same issue as @setnes: very slow gallery display: chrome debug console showed 2-3 seconds to I enabled a local redis for I'm not sure if this config is optimal for my small personal usecase. Maybe APCu for locking & local memcache is OK, maybe redis for both is better. Do you have any tips on that? Maybe it should be more visible: the default configuration leads to really poor performance now, and it took me some time to find a solution after the upgrade. (doc.owncloud.org being previously down didn't help for sure...) |
Installing Redis certainly helped on my end as well. On Gentoo I did the following.
Then I added some magic text to the owncloud config.php file.
I'm not entirely sure how much of that is really needed in a basic install. I see that config as an example in many places though. Someone who understands the caching might be able to explain each line. :) I'm also not sure if Redis should be used for everything, or just distributed and locking... etc. This is working, but I'm not sure if it's the best recommendation. |
Happy to help on that. So, when we talk about caching ownCloud uses different caches for different use-cases.
The other stuff is just for the Redis connection. You can remove the |
@Niluge-KiWi - That's normal the first time you launch the app, if there are missing thumbnails. It should always be much faster after that, but I'd be interested to know if Redis also speeds up this operation. @setnes - Because of the defaults, you only need to set |
More metrics: (all after multiple page refresh)
My setup: 27 photos in the directory, 2 cores Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz, 2GB RAM, HDD. So, at least for me:
So I'll stay with local APCu & locking Redis: full speed, with protections guaranteed by file locking! |
Excellent, thank you very much for this data. I did experience the slow down on 8.0 when enabling file locking, but thought it had been sorted out on 8.1+, forgetting that I had switched to using Redis. |
Closing this as this is a core issue which is mostly fixed, at least for people using Redis. There is little the app itself can do to improve the situation. |
Ref owncloud/core#10077 (comment)
Opened here as well to allow people to search for it as well.
The text was updated successfully, but these errors were encountered: