Windows 2022 Server file copy slow over a SMB share

IRC.be | Björn Saegeman 0 Reputation points
2023-05-23T07:58:53.8566667+00:00

Hi,

We have a windows 2022 Server, when we do a copy of a folder with 1000 small files on an SMB Share, it is crawling against a speed of 200kb/s. When we do the same action on or Windows 2012 R2 Server, it has a speed of almost 1mb/s.

If we copy that folder to the C-drive, and copy that to another server's C-drive over a SMB share. On a 2022 Server, we have the same issue, 200/kbs, but on the Windows 2012R2 Server, it is almost 2/mbs.

So what can be the problem here?

Windows for business | Windows Server | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-05-24T11:14:56.9633333+00:00

    Hello

    Thank you for your question and reaching out.

    A slow transfer of small files occurs most commonly when there are many files. This occurrence is an expected behavior.

    During file transfer, file creation causes both high protocol overhead and high file system overhead. For large file transfers, these costs occur only one time.

    You can troubleshoot slow file transfers by checking your current storage use. If you observe slow transfers of files, consider the following steps:

    Try the file copy command for unbuffered IO:

    xcopy /J

    robocopy /J

    Reference :

    https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/slow-file-transfer

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. IRC.be | Björn Saegeman 0 Reputation points
    2023-05-24T11:30:54.81+00:00

    Hi,

    i logged in as the domain Admin, and did a packet capture during the copy of the 1000 small files on the networkshare. The user who logged on, and the files that are copied are the same in my test for 2012 R2 and 2022.

    The SRT of the copy on 2022 Server:

    User's image

    The SRT of the copy on a Windows 2012R2User's image

    I notice, that there is a very long response time on Notify.

    I see some Notify messages:

    Notify Repsonse, Error: STATUS_CANCELLED

    Notify Repsonse, Error: STATUS_PENDING

    GetInfo Response, Error: STATUS_ACCESS_DENIED


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.