This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[SOLVED] Very slow browsing in folders
-
HolGORE
- NewUser

- Posts: 2
- Joined: 10 Nov 2013 00:02
- Status: Offline
[SOLVED] Very slow browsing in folders
hey together,
i have my NAS since 4 weeks.
http://www.sysprofile.de/id178006 <-- here the hardware list but with a Intel network card.
the read/write speed is fine for me. Im using a RAID5 @ ZFS. 4 x 3TB Red.
Write ~70 mb/s
Read ~ 70 mb/s - 90 mb/s
(belongs on the size of the files ofc)
but i have a big problem. if i want to browse in my music folder for example, it takes ages to load it. and if im already listening to music and want to brose the song stucks for 2-3 secs, playing for 2-3 secs and the same.
after the music folder has been loaded everything works well. if i want to get in a folder the same procedure.
in the music folder are ~1000 folders.
Is there any way to fix this?
Thank you all in advance
regards
Holgore
i have my NAS since 4 weeks.
http://www.sysprofile.de/id178006 <-- here the hardware list but with a Intel network card.
the read/write speed is fine for me. Im using a RAID5 @ ZFS. 4 x 3TB Red.
Write ~70 mb/s
Read ~ 70 mb/s - 90 mb/s
(belongs on the size of the files ofc)
but i have a big problem. if i want to browse in my music folder for example, it takes ages to load it. and if im already listening to music and want to brose the song stucks for 2-3 secs, playing for 2-3 secs and the same.
after the music folder has been loaded everything works well. if i want to get in a folder the same procedure.
in the music folder are ~1000 folders.
Is there any way to fix this?
Thank you all in advance
regards
Holgore
-
kenZ71
- Advanced User

- Posts: 379
- Joined: 27 Jun 2012 20:18
- Location: Northeast, USA
- Status: Offline
Re: Very slow browsing in folders
Anything in your system logs?
What is trying to play the music and how is that item connected ? Have you tried other PCs to play the music ?
What is trying to play the music and how is that item connected ? Have you tried other PCs to play the music ?
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Very slow browsing in folders
check with zfskerntune if prefetch is enabled
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
00Roush
- Starter

- Posts: 64
- Joined: 15 Sep 2013 09:27
- Status: Offline
Re: Very slow browsing in folders
I ran into this issue a while back while testing performance of NAS4Free versus my Windows Server. Mine was for folders of pictures.
Uncheck the box for Enable store DOS attributes under the CIFS/SMB settings page.
Let me know if that helps.
00Roush
Uncheck the box for Enable store DOS attributes under the CIFS/SMB settings page.
Let me know if that helps.
00Roush
-
HolGORE
- NewUser

- Posts: 2
- Joined: 10 Nov 2013 00:02
- Status: Offline
Re: Very slow browsing in folders
THIS helped me!00Roush wrote:I ran into this issue a while back while testing performance of NAS4Free versus my Windows Server. Mine was for folders of pictures.
Uncheck the box for Enable store DOS attributes under the CIFS/SMB settings page.
Let me know if that helps.
00Roush
now its working fine
thank you all!
-
serverguy
- Starter

- Posts: 22
- Joined: 25 Oct 2014 13:18
- Contact:
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
"check with zfskerntune if prefetch is enabled"
HOW does one do this? I did the install and the PostInit command script, rebooted. But... then what? The Command is not found. I can't find any documentation by searching on how to use this or how it works.
HOW does one do this? I did the install and the PostInit command script, rebooted. But... then what? The Command is not found. I can't find any documentation by searching on how to use this or how it works.
-
serverguy
- Starter

- Posts: 22
- Joined: 25 Oct 2014 13:18
- Contact:
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
Turned off "Enable store DOS attributes". No hangs on the slow loading system. Going to test on the faster throughput system. Hoping it is solved.
-
serverguy
- Starter

- Posts: 22
- Joined: 25 Oct 2014 13:18
- Contact:
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
NOT Solved here.
Following suggestions posted in responses - Turned off "Enable store DOS attributes" and "EA Support". Saved and Restart. Still big gaps during writing. See attachment.
Current SMB checkbox config:
Max Protocol: SMB3
Local Master Browser: No
Time Server: No
Map to guest: Never
Send Buffer: 64240
Receive Buffer: 64240
Large read/write: checked
Use Sendfile: NOT checked
EA Support: NOT checked
Store DOS attributes: NOT checked
Asynchronus I?/O (AIO): checked
AIO read/write size: both 4096
So no joy here yet. Anything else to change/check? Still no idea now to execute zfskerntune to see more.
Mike
Following suggestions posted in responses - Turned off "Enable store DOS attributes" and "EA Support". Saved and Restart. Still big gaps during writing. See attachment.
Current SMB checkbox config:
Max Protocol: SMB3
Local Master Browser: No
Time Server: No
Map to guest: Never
Send Buffer: 64240
Receive Buffer: 64240
Large read/write: checked
Use Sendfile: NOT checked
EA Support: NOT checked
Store DOS attributes: NOT checked
Asynchronus I?/O (AIO): checked
AIO read/write size: both 4096
So no joy here yet. Anything else to change/check? Still no idea now to execute zfskerntune to see more.
Mike
You do not have the required permissions to view the files attached to this post.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
try to play with Send & Receive Buffer; start using x2, x3 and x4 default values.
eg: try send & receive buffer = 128480, etc...
eg: try send & receive buffer = 128480, etc...
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
serverguy
- Starter

- Posts: 22
- Joined: 25 Oct 2014 13:18
- Contact:
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
Changed buffer to 128480. Sadly, less than 2 minutes in, got first stutter. Minute later got 5 second pause. Problem not solved yet. Going to higher buffer size. Memory hardly used.
Now set to 256,960. Save and Restart again.
Less than 30 second in, got 3 second pause. And they continue from there.
Sadly, problem not solved yet.
Folder browsing still slow, too. On same GB switch as NAS box and nothing else going on on this branch so not a data bottleneck. Checking other threads. Wish this had not been marked as solved...
MIke
Now set to 256,960. Save and Restart again.
Less than 30 second in, got 3 second pause. And they continue from there.
Sadly, problem not solved yet.
Folder browsing still slow, too. On same GB switch as NAS box and nothing else going on on this branch so not a data bottleneck. Checking other threads. Wish this had not been marked as solved...
MIke
-
pokeyboy
- Starter

- Posts: 24
- Joined: 26 Nov 2014 01:58
- Location: Apple Valley, MN USA
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
This is a shot it the dark and it may be totally unrelated. I was having a similiar networking problem. I stumbled on the solution by accident. The CPU I was using was a Pentium 4 with HyperThreading. When I turned off the HyperThreading in the BIOS, everything worked fine. That's the way I left it.
-
Lord Crc
- Starter

- Posts: 51
- Joined: 17 Jun 2013 12:29
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
I too had issues with slow directory browsing. What really helped for me, if I recall correctly, was to make Samba case sensitive. IIRC without this Samba has to list all the files and do some checks (for file-name clashes) before sending it over, resulting in a lot of latency. With case sensitivity enabled it can just hand the metadata straight over. Similar for creating files.
This breaks with what's expected in the Windows world (where filesystems are case _in_sensitive) and can theoretically lead to issues (such as not being able to open a file), but I've yet to have any issues at all with this. After all, almost all programs will just reference the filename as it gets it from the filesystem, in which case there won't be any issue.
Here's what I've added to the samba conf (under "Auxilary parameters"):
In addition I have 128480 as send and receive buffer size and AIO enabled (default read/write size). With this I can saturate my gigabit network and browsing folders with thousands of files is fast.
This breaks with what's expected in the Windows world (where filesystems are case _in_sensitive) and can theoretically lead to issues (such as not being able to open a file), but I've yet to have any issues at all with this. After all, almost all programs will just reference the filename as it gets it from the filesystem, in which case there won't be any issue.
Here's what I've added to the samba conf (under "Auxilary parameters"):
Code: Select all
case sensitive = yes
getwd cache = yes
preserve case = yes
short preserve case = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE-
jollmon
- NewUser

- Posts: 6
- Joined: 01 Apr 2015 06:19
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
Thanks @ Lord Crc!
This really helped out my 100gb photos folder when it came to generating thumbs! now it will be easier for me to sort them in a fashion that makes sense.
I just wanted to add in that It didnt seem to register these settings updates on my system until I did a reboot. I think thats like a thing actually if you make a change and see no improvement, try a reboot. Several items have been helped by this for me with tuning and cifs.
This really helped out my 100gb photos folder when it came to generating thumbs! now it will be easier for me to sort them in a fashion that makes sense.
I just wanted to add in that It didnt seem to register these settings updates on my system until I did a reboot. I think thats like a thing actually if you make a change and see no improvement, try a reboot. Several items have been helped by this for me with tuning and cifs.
3U AthenaPower RM-3U364R Case
Biostar TA970 v5.2
Sempron 145 @ 45watts
2x 1GB Nanya DDR3 ram modules
Zippy 2U sized slim 510w PSU (loud)
5x Seagate Barracuda 7000.11 1TB drives
PNY Attache 16GB mirco USB stick
9.3.0.2 nas4Free
APC Smart-UPS 1500 RM 2U
Current wattage ~ 95 watts
Biostar TA970 v5.2
Sempron 145 @ 45watts
2x 1GB Nanya DDR3 ram modules
Zippy 2U sized slim 510w PSU (loud)
5x Seagate Barracuda 7000.11 1TB drives
PNY Attache 16GB mirco USB stick
9.3.0.2 nas4Free
APC Smart-UPS 1500 RM 2U
Current wattage ~ 95 watts
-
Lord Crc
- Starter

- Posts: 51
- Joined: 17 Jun 2013 12:29
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
Glad it helped 
Regarding rebooting, yes, I tend to do that for all such config changes, but I forgot to mention as it's been quite a while since I've changed anything. I call it "stable system dementia", very annoying.
Regarding rebooting, yes, I tend to do that for all such config changes, but I forgot to mention as it's been quite a while since I've changed anything. I call it "stable system dementia", very annoying.
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
It seems SO_SNDBUF=64240 SO_RCVBUF=64240 of socket options is bad parameters.Lord Crc wrote:Here's what I've added to the samba conf (under "Auxilary parameters"):Code: Select all
case sensitive = yes getwd cache = yes preserve case = yes short preserve case = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
If you have a problem, please try to add
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
to Auxilary parameters.
You can see current setting by CLI:
# testparm -vs
Also you can change the value of net.inet.tcp.delayed_ack=1 under "System|Advanced|sysctl.conf"
Thank you for reporting.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
-
Lord Crc
- Starter

- Posts: 51
- Joined: 17 Jun 2013 12:29
- Status: Offline
Re: [SOLVED] Very slow browsing in folders
It's coming back to me now. Here's the article I based my changes on: https://www.samba.org/samba/docs/man/Sa ... efile.html