Strange behaviour when copying from desktop PC to CIFS Share hosted by Freenas

Status
Not open for further replies.

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472

fcueto

Dabbler
Joined
Aug 10, 2014
Messages
26

Unfortunately on this forum, questions on performances are too often replied with:
- you have poor hardware, upgrade it
- you don't have 128GB of RAM, ZFS will not work properly
- you don't have an Intel NIC, it cannot work
- don't use RAIDZ1
- don't use 4 HDD with RAIDZ1
- samba is bad, slow, single threaded, don't use it, use ftp or nfs instead
- .....

It's always your fault if you don't have good performances... But this time it is not, it's just the default settings of samba which are broken.
This solved my problem completety:
http://forums.freenas.org/index.php?threads/browsing-directories-slow.5338/page-6#post-139295
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Unfortunately on this forum, questions on performances are too often replied with:
- you have poor hardware, upgrade it
- you don't have 128GB of RAM, ZFS will not work properly
- you don't have an Intel NIC, it cannot work
- don't use RAIDZ1
- don't use 4 HDD with RAIDZ1
- samba is bad, slow, single threaded, don't use it, use ftp or nfs instead
- .....

It's always your fault if you don't have good performances... But this time it is not, it's just the default settings of samba which are broken.
This solved my problem completety:
http://forums.freenas.org/index.php?threads/browsing-directories-slow.5338/page-6#post-139295

Disabling extended attributes is a no-go in a multiuser environment. What you did to fix your problem is not a good default. Testing with other protocols was to isolate whether your issue was protocol-related.

I believe that under certain circumstances directory browsing in CIFS becomes slow as the server looks up extended attributes by walking down the file tree.

There are a few ways around this problem:

1) Disable features in CIFS (which you have done)
2) Add more RAM so that this data stays cached
3) Restructure your file tree so that the server has to perform less lookups.
4) Increase IOPS of your pool (this means more VDEVS). A RAIDZ1 vdev has the IOPS of a single disk.
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Can you explain me why it's a no-go in a multiuser environment ?
Please not that both attributes are disabled in the default samba configuration (see https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html)

The documentation in the smb.conf manpage is incomplete. Typically in an office environment samba is configured as an ADS member server. the aforementioned parameters are necessary for windows ACLs to work properly. See here: https://wiki.samba.org/index.php/Se...ith_Windows_ACLs#ACL_support_on_member_server
 
Status
Not open for further replies.
Top