-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hige idle cpu when external storage is added #13019
Comments
Owncloud put file trees in mysql after a external storage is scanned, how long should a search like that take? Could it be that this scanning of the external storage is the problem cousing hige cpu usage. external storage is close to 600 000 files. is there a way to check this scanning progress. Mysql is showing alot of traffic from owncloud: row, oc_filecache is almost 250 000 entries and 120mb. so it seems that the cpu is scanning through the file paths on the external storage and is caching them in DB. is this normal behavior? |
hmm. hard to say but I guess this is normal for 600.000 files |
I doubt that its normal, there cant be a depth, file limit for owncloud. So you say if i have a owncloud cluster there is a limit to how many files it can handle? If this is in fact the normal behavior i think owncloud has fundamental design flaws. I did read a bit about issues related to the scan function for storage, it seems its plagued with bugs. Also deleting external storage should clean out the db for cached paths related to that storage. Its not. i find there is alot of bugs in owncloud.
So my conclusion is owncloud is still in early beta/alpha regarding code stability. Its inefficient code. But its far better then a couple of years ago when i last tried it. Its even usable now if the external storage can be fixed. |
For 600 000 files the file scanner might take quite a long time to index all files. Deleting an external storage will cleanup properly as per #10820 As per your points:
Thanks! |
CC @icewind1991 @butonic for the scanner issue, did we have a ticket to look into improving scanner performance ? |
The scanner has been moved to a background job (cron) in 9.0, so while it might still use CPU for the actual scanning task, it won't be triggered when a user is inactive in the web browser. |
it seems my owncloud install has some problems with hige cpu usage when adding external storage in the gui. i have tried with both cifs, ftp and sftp and all 3 types generates steady hige cpu usage all the time the share is mounted. removing the external storage and cpu usage returns to normal.
debian 7 wheezy
owncloud 7
openfiler as external storage (cifs,ftp and sftp)
The text was updated successfully, but these errors were encountered: