-
Notifications
You must be signed in to change notification settings - Fork 87
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
Severe performance issue -- file deletion #1428
Comments
Looks like a duplicate of #1361 |
Please reopen, this is not a duplicate of that issue. |
I found the problem. Please reopen, there is a valid bug that has nothing to do with the other thread. I identified the problem by enabling the mysql general log and found big time steps between a few queries;
The queries themselves weren't particularly slow (about 70 ms), but it dumped out a list of 11k files under __groupfolders/trash/1/ -- which were clearly taking a while to be processed by php. It obviously shouldn't be processing the trash directory like this. |
@ASerbinski I would probably tend to try working around such frontend problems with something like filestash (most easy if already using nextcloud external storage). |
Looking for "How to access your filesystem" with it that is. |
I worked around the issue by running the cleanup in my nightly cronjob. Solutions that use alternative products really don't apply since they don't fix the actual bug. |
Yep, I understand. It would also involve using a brush-up shell-script for the classic unix group directories and user private group scheme. Which I didn't think of anymore, as they just work so silently, once these are set up. |
Closing this as the main cause behind the issue is solved in recent versions. Please comment, reopen or create a new issue if you think this problem still exists. Thanks! |
I'm looking mostly for advice on how to track a performance issue I'm having with group folders;
Basics;
Nextcloud 20.0.8
Groupfolders 8.2.0
apache httpd 2.4.37 with h2 enabled
php 7.4.6
mariadb 10.3.17
centos 8
8-core x86, 32GB, 2TB SSD.
I have about 20 users connected to a group folder using webdav, the load is actually very light as the workflow is such that the users will open one pdf file at a time in a local annotator, spend a few minutes working in it, and save.
The problem is that some file operations are exceedingly slow. In particular, MOVE and DELETE take around 1.5 seconds for any file -- which adds up considerably if the operation has to be done on a larger number of files (i.e. mass delete or move). I've also checked via nextcloud web ui, and those operations take the same time there, which means it isn't a webdav issue.
Outside of the group folder, these operations take around 75 ms.
I've also created a second group folder and duplicated all of the data into it (12 GB, about 14k files), and in the second group folder, the operations take about 75 ms.
I've also tried disabling advanced permissions -- no change.
LOAD is averaging around 0.4 (of 8)
Where do I look?
The text was updated successfully, but these errors were encountered: