cifs - large directory listing slow

Added by Lynn Cress about 1 year ago

We have about 20,000 user accounts in separate home an profile directories on Nexenta shared out as CIFS. We recently moved them from a M$ storage system. On the M$ storage the directory listing on each of these was relatively fast. But on CIFS it is pretty slow.

As we put more of the Nexenta storage out into production I know I'm going to be catching hell about the slow directory list under CIFS.

Is there some way to speed this up? I can type a UNC path to a specific subdirectory from a windows client and I get to it immediately. But if I try to list the entire parent home directory I have to wait for a slow progress bar. I could even live with the idea that all the subdirectories have to cataloged the first time, but if I jump into a subdirectory and then move back up to the top again, I get the same progress bar.

This will be extremely irritating for the end user.

I have already tried editing /etc/samba/smb.conf and removing the comment for SORCVBUF=8192 SOSNDBUF=8192 and restarting samba, but I could not see any difference in the directory listing speed.


Replies

RE: cifs - large directory listing slow - Added by Gordon Ross about 1 year ago

Are you using Samba? (presumably yes, if smb.conf has any effect)

Large directories are going to be slower. Some things you might try are to disable "short names" and "case insensitive lookup" in those shares, both of which force the server to do more work during directory operations. Sorry, I don't remember how to do that in Samba.

You might also try the native SMB service. It's more integrated with ZFS than Samba and therefore likely to do better here.

RE: cifs - large directory listing slow - Added by Ryan W about 1 year ago

He's probably using the integrated SMB service, in which case smb.conf has no effect (as far as I know)...

RE: cifs - large directory listing slow - Added by Lynn Cress about 1 year ago

Yes, I'm using the integrated SMB service. Explains why editing smb.conf didn't do diddly.

On 1/18/2012 10:46 AM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4613 Ryan W

He's probably using the integrated SMB service, in which case smb.conf has no effect (as far as I know)...

-- Lynn Cress Sr. Systems/Network Administrator Washburn University phone: (785) 670-2387

RE: cifs - large directory listing slow - Added by Ryan W about 1 year ago

What does your pool layout look like?

How many files are we talking? I have a few cifs directories with 12K+ text files in it and it loads within a second or two.

On Wed, Jan 18, 2012 at 11:52 AM, NexentaStor.org tracker@nexentastor.orgwrote:

http://www.nexentastor.org/boards/1/topics/4613 Lynn Cress

Yes, I'm using the integrated SMB service. Explains why editing smb.conf didn't do diddly.

On 1/18/2012 10:46 AM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4613 Ryan W

He's probably using the integrated SMB service, in which case smb.conf has no effect (as far as I know)...

-- Lynn Cress Sr. Systems/Network Administrator Washburn University phone: (785) 670-2387

-- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://www.nexentastor.org/my/account

RE: cifs - large directory listing slow - Added by Lynn Cress about 1 year ago

The smaller shares are not really a problem, but I have a couple that have about 20,000 subdirs in each.

On 1/18/2012 12:18 PM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4613 Ryan W

What does your pool layout look like?

How many files are we talking? I have a few cifs directories with 12K+ text files in it and it loads within a second or two.

On Wed, Jan 18, 2012 at 11:52 AM, NexentaStor.org tracker@nexentastor.orgwrote:

http://www.nexentastor.org/boards/1/topics/4613 Lynn Cress

Yes, I'm using the integrated SMB service. Explains why editing smb.conf didn't do diddly.

On 1/18/2012 10:46 AM, NexentaStor.org wrote:

http://www.nexentastor.org/boards/1/topics/4613 Ryan W

He's probably using the integrated SMB service, in which case smb.conf has no effect (as far as I know)...

-- Lynn Cress Sr. Systems/Network Administrator Washburn University phone: (785) 670-2387

-- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://www.nexentastor.org/my/account

-- Lynn Cress Sr. Systems/Network Administrator Washburn University phone: (785) 670-2387