Forums

tomas
tomas
Offline
Resolved
0 votes
Hi

We have a shared drive on our v7.x server.

Word and Excel files (only!) open very slow on Windows 10 Pro (1909 and 2004) machines with Office 2016 Pro. For example it takes ~20 seconds to open 55kb Word .docx file.
Other file types open very fast e.g. opening 10MB PDF file takes max 2 seconds; copying files is also very fast. We have SMBv1 support disabled; Win10 client have SMBv1 support disabled too. Share is mapped to a fast Samsung SSD drive.

Also, we have a 'webdav' based share hosted by another, non-ClearOS machine and opening Word and Excel files takes even longer e.g. 90-120 seconds to open simple Word .docx file.

We think that both issues are caused by Windows 10 or Office 2016 update.

So far we have tried:

- enabling NetBIOS over TCP/IP
- regedit:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
add
DirectoryCacheLifetime: Dword=0
FileInfoCacheLifetime: Dword=0
FileNotFoundCacheLifetime: Dword=0
Then reboot - no changes.

- disabling AV - in our case ESET Endpoint Security - no changes

Has anyone had similar problems? What might be causing it?
Tuesday, July 28 2020, 02:14 PM
Share this post:
Responses (5)
  • Accepted Answer

    Tuesday, July 28 2020, 02:52 PM - #Permalink
    Resolved
    0 votes
    I sometimes observe a slowdown, but once it clears, that is it for the day, so I don't know the cause. I use a mixture of Office 2010 and 2016, but I have not mentally logged on which device I see the issues. I just opened word for the first time today and opened a small (25kB) docx file and it was very fast.
    The reply is currently minimized Show
  • Accepted Answer

    tomas
    tomas
    Offline
    Wednesday, August 05 2020, 01:45 PM - #Permalink
    Resolved
    0 votes
    Update: the issue affects around 50% of our Win 10 machines (1909 and 2004). AV is not causing the issue here; have it uninstalled completely on one affected machine is the issue still persists (and we use the same AV policies on all machines).

    So the problem seems to be with domain. On the test affected machine if I leave our ClearOS domain, the issue is solved - Word and Excel docs open extremely fast. If I join the domain the issue occurs again - opening Word and Excel docs is slow on SMB and webdav, other types of files are fast.

    Our join domain registry fix is standard:


    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]

    "DomainCompatibilityMode"=dword:00000001
    "DNSNameResolutionRequired"=dword:00000000

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\netlogon\parameters]
    "DisablePasswordChange"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    "EnableLinkedConnections"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkProvider\HardenedPaths]
    "\\\\*\\NETLOGON"="RequireMutualAuthentication=0, RequireIntegrity=0,RequirePrivacy=0"
    "\\\\*\\SYSVOL"="RequireMutualAuthentication=0, RequireIntegrity=0,RequirePrivacy=0"
    "\\\\CITIZEN\\netlogon"="RequireMutualAuthentication=0, RequireIntegrity=0,RequirePrivacy=0"


    And for Outlook 2016:


    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb]
    "ProtectionPolicy"=dword:00000001


    No other changes were made, that's why it's so confusing.

    Also, if I'm not mistaken, samba file sharing is over 'SMB2' protocol and 'webdav' is over 'HTTP' so the issue might be more with Windows than samba as SMB file share is on our 1st ClearOS server, webdav is a Tomcat app file share hosted on our 2nd ClearOS server...
    The reply is currently minimized Show
  • Accepted Answer

    tomas
    tomas
    Offline
    Wednesday, August 05 2020, 02:41 PM - #Permalink
    Resolved
    0 votes
    Update 2:

    On domain joined machine:

    On flexshare if I open a Word file via Network -> {myserver] > [share-name] it's fast as it should be (max 2 sec)
    If I open it via a mapped Windows 10 drive is very slow - ~20 seconds. Disconnecting / reconnecting the drive doesn't help. And why only Word and Excel docs? So confusing...

    On machine that left domain:

    Word and Excel docs always fast no matter what
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 05 2020, 02:57 PM - #Permalink
    Resolved
    0 votes
    I wish I could help more. I am not domain joined at home. I have joined a few times but never tested speeds. AFAIK file shares will use SMB3. I use a minimum of 2 with:
    server min protocol = SMB2
    You can try forcing SMB3 if you want, but there may be knock-on side-effects.

    I have no idea why accessing by network is faster than mapped drive. Doing a search, there are things to try or articles to read:
    https://www.zubairalexander.com/blog/how-to-fix-slow-access-to-network-shares/
    https://answers.microsoft.com/en-us/windows/forum/all/file-access-via-windows-explorer-slow/7324c0a2-b944-40d7-94a5-59238e24cc7f
    https://community.spiceworks.com/topic/2168064-why-is-windows-10-very-slow-to-open-network-files
    The reply is currently minimized Show
  • Accepted Answer

    tomas
    tomas
    Offline
    Thursday, August 06 2020, 12:30 PM - #Permalink
    Resolved
    0 votes
    AFAIK file shares will use SMB3


    We used Wireshark Network Analyser on a affected Win10 machine to check which SMB version is used when a file on a flexshare mapped as a network drive (took 20 seconds to open .docx) or mapped as network location (took ~2seconds to open same .docx). In both cases it was SMB2 protocol. SMB2 is also used on non-affected Win10 machines.

    On all Win10 machines when we run in Poweshell:

    Get-SmbConnection | Select-Object -Property *


    we get
    Dialect : 3.1.1
    which suggests SMB3 is used.

    Not sure yet why, will update when I have time..
    The reply is currently minimized Show
Your Reply