Skip to content
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

external storage (SMB) slow #9511

Closed
Af0x opened this issue May 17, 2018 · 6 comments
Closed

external storage (SMB) slow #9511

Af0x opened this issue May 17, 2018 · 6 comments

Comments

@Af0x
Copy link

Af0x commented May 17, 2018

hello,
I added an external samba to my cloud and first of all it is very slow if I try to access it via webdav from a desktop client.
Edit: The problem is the option "Check for changes". As I set it to never, it loads very fast.

Nextcloud 13.0.2

Regards,

Af0x

@Af0x Af0x changed the title external storage slow and name issue external storage (SMB) slow and name issue May 17, 2018
@Af0x Af0x changed the title external storage (SMB) slow and name issue external storage (SMB) slow May 17, 2018
@migueltg
Copy link

+1 here

@MorrisJobke
Copy link
Member

I added an external samba to my cloud and first of all it is very slow if I try to access it via webdav from a desktop client.
Edit: The problem is the option "Check for changes". As I set it to never, it loads very fast.

That's by design. If it needs to check on every request for changes then it is slow. You could try out the notify configuration to work around this, but this needs to be supported by your SMB server:
https://docs.nextcloud.com/server/13/admin_manual/configuration_files/external_storage/smb.html#smb-update-notifications

@Af0x
Copy link
Author

Af0x commented May 22, 2018

I am using a linux smb-server, so this is not possible I guess.
what I don´t understand: why does it have to check the whole smb-share? why can´t it check the currently accessed folder. I have like 5000 files in my share so the check takes ages when cheking all of them.
Even when mounting only a specific folder of a share it seems it checks the whole share.

@MorrisJobke
Copy link
Member

what I don´t understand: why does it have to check the whole smb-share? why can´t it check the currently accessed folder. I have like 5000 files in my share so the check takes ages when cheking all of them.
Even when mounting only a specific folder of a share it seems it checks the whole share.

Because then you never know if a subfolder has changed and the clients then would never know about this change in a sub sub sub sub folder.

@Af0x
Copy link
Author

Af0x commented May 22, 2018

on my setup it checks on every directory change inside a mounted share. So if it checks anyway on every action, why does it have to know the subfolders already that aren´t displayed yet.
Maybe I think wrong.

@Af0x
Copy link
Author

Af0x commented May 28, 2018

maybe a third option involving a cron that automatically syncs the share in an user defined interval would be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants