Windows 7 - Opening folders hangs for over 30 seconds

All questions regarding using our system with Windows XP, Vista, 7 may go here.

Windows 7 - Opening folders hangs for over 30 seconds

Postby svenglar » Thu Apr 19, 2012 9:31 am

Hi everyone. I hope somebody can shed light on the issue I'm having:

My current setup, with a DS209 in RAID-1, has been working beautifully for over six months. All of a sudden, with no apparent change from my end, all of my Windows 7 PC's take at least 45 seconds to open or change folders when browsing with Windows Explorer.

  • My SMB file-transfer speeds are still great (~45MB/s w/ jumbo frames).
  • It doesn't matter if I browse the local network with Explorer, map the share to a drive with hostname or IP address, or use "net use" to mount the share; All of the folder changes hang for nearly a minute.
  • All other interactions with the Diskstation are fine and delay-free: SSH, ping, web-management, remote-access.
  • The Diskstation hangs especially bad when opening a specific share name (video, music, pictures) for the first time.
Has anyone ever experienced this before? Anyone have any ideas on what may be causing the hang-up?


If anyone would like to took, I took some Wireshark packet captures of the whole process between my PC and the Diskstation: from opening the "Network" folder in Windows Explorer to opening a sub-folder a couple levels deep. The "hang" is shown in the capture as well. A SMB request packet is sent to the DS209, then nothing... for 47 seconds, and then finally there's a response packet from the DS209. After which, the SMB's protocol for viewing directories takes an unusually long time to complete as well.
svenglar
I'm New!
I'm New!
 
Posts: 8
Joined: Sun Sep 26, 2010 10:44 pm

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby TheButler » Thu Apr 19, 2012 1:44 pm

Is it all folders? What view do you have open in explorer? If it is thumbnail etc, try detailed.
User avatar
TheButler
Rookie
Rookie
 
Posts: 33
Joined: Tue Jul 26, 2011 1:37 pm
Location: UK

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby svenglar » Thu Apr 19, 2012 9:29 pm

Is it all folders?

Yes, it is all folder.

What view do you have open in explorer?

Usually, I am in details or list view. I don't think thumbnail generation is the issue here, but good guess.


Okay, so now, the symptoms have changed slightly. Now, only the initial opening of the "NAS" network device and the initial opening of a shared folder hangs.

For example:
  • I open Windows Explorer, and on the left side I see the "Network" drop down list with my DS209 listed as NAS (which is the name I gave it).
  • When I click "NAS", Explorer hangs for ~45 seconds then it catches up and shows my list of shares (Music, Video, Pictures).
  • When I click on Music, Video, or Pictures, Windows Explorer hangs again for ~45 seconds.
  • Once I'm actually in a shared folder, navigation is quick and lag-free.
svenglar
I'm New!
I'm New!
 
Posts: 8
Joined: Sun Sep 26, 2010 10:44 pm

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby TheButler » Fri Apr 20, 2012 10:41 am

Still sounds like something is scanning or indexing. Have you checked that your antivirus is not scanning network drives? I have seen this cause problems.

Is your SMART report ok on your NAS - no errors?
User avatar
TheButler
Rookie
Rookie
 
Posts: 33
Joined: Tue Jul 26, 2011 1:37 pm
Location: UK

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby svenglar » Sat Apr 21, 2012 2:30 am

Thanks for your help TheBulter.

I've done a full SMART check on both drives; they are both showing no errors. I also have turned off my anti-virus (Security Essentials), but that didn't help.


It really seems like the Diskstation is either stalling when trying to respond, or my requests aren't being sent. It is very strange though, that ALL other network communication with the Diskstation is fine. Only when viewing Samba shares do I notice a huge lag-time.
svenglar
I'm New!
I'm New!
 
Posts: 8
Joined: Sun Sep 26, 2010 10:44 pm

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby PockyMaster » Sat Apr 21, 2012 8:32 pm

I have exactly the same issue on my 412+ but got it since day one.
Sometimes it takes a couple minutes to connect to a mapped drive, other times it's immediate.

When browsing files via the webportal it's fast and the station seems to be idle
PockyMaster
I'm New!
I'm New!
 
Posts: 1
Joined: Sat Apr 21, 2012 8:27 pm

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby TheButler » Wed Apr 25, 2012 12:24 pm

Try checking your windows indexing settings or switch off the windows search service in win 7. I wonder if it trying to index a mapped drive...
User avatar
TheButler
Rookie
Rookie
 
Posts: 33
Joined: Tue Jul 26, 2011 1:37 pm
Location: UK

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby 3perko » Thu Aug 09, 2012 12:10 am

Hi guys,

Please, were you able to solve this behaviour somehow ? I am facing absolutely same issue and even after couple of hours browsing for solution, staying completely hopeless.

Thanks
Miro
3perko
I'm New!
I'm New!
 
Posts: 3
Joined: Thu Aug 09, 2012 12:00 am

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby 3perko » Sun Aug 26, 2012 4:59 pm

Hi, Synology support helped me to solve my issue. In case that you are facing similar issue, have a look if you have configured LDAP server and try to disable it. In my case, not proper configuration of LDAP was causing this delay ...

Miro
3perko
I'm New!
I'm New!
 
Posts: 3
Joined: Thu Aug 09, 2012 12:00 am

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby j.olivier » Mon Sep 03, 2012 3:08 am

I got the same speed/hang problem when accessing my diskstations (DS110j/DS412+) from Windows, after many test I discover that even if the single large file transfert was quite fast, that was the file creation that slow down my transfert of several small files, at a point of reaching few KB/s :x

I found a solution that work for my DSM 4.0 & 4.1 :

- Stop Win/Mac/NFS File Sharing in DSM

- edit with vi the file :
/usr/syno/etc/smb.conf

- insert the following at the end of the [global] section

read raw = yes
write raw = yes
wide links = yes
getwd cache = yes
strict sync = no
use sendfile = yes
max xmit = 131072
min receivefile size = 16384
aio read size = 16384
aio write size = 16384
socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE
write cache size = 8388608

- save & restart Win/Mac/NFS File sharing

now I'm able to copy 19880 files (19.9GB) at 15-100MB/s depending on the file size.
before I used to send GB files at 40-50MB/s and small at KB/s
j.olivier
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Aug 07, 2012 1:55 pm

Re: Windows 7 - Opening folders hangs for over 30 seconds

Postby j.olivier » Mon Sep 03, 2012 3:16 am

BTW, before I tried the previous changes,

I checked every other possible reason for slow down, so I did that with :
- no indexing
- only DownloadStation + File sharing
- Gigabit network
- DS412+ with 2x Western Digital RED 3TB drives in ext4 SHR
- no 100% CPU bug (0-4% during 20GB transfert)

so in case you have slow transfert, try sending a large file to check your max speed, if you reach something close to theorical performance, then these settings might help you, else you need to resolve your overall speed problem first.
j.olivier
I'm New!
I'm New!
 
Posts: 5
Joined: Tue Aug 07, 2012 1:55 pm


Return to Windows OS

Who is online

Users browsing this forum: No registered users and 2 guests