Speeding up File Copy in a Computer Lab

In our labs, we often need to copy large files to multiple lab machines. These days, we have 10 GBE network cards on all file servers, but it wasn't long ago that we had only a 1 Gbps connection between the file server and the switch that connected the clients. To minimize the time it takes to distribute the files from the file server to the lab machines, there are two techniques you can use:

  • Multiple background file copy jobs
  • Fan-Out file copy

Scenario #1 – Multiple background file copy jobs

Using multiple background file copy jobs is great when the file server has a faster connection to the switch than the clients do, and you have fewer than 25 lab machines. The image below illustrates that scenario:

Below is a PowerShell script that copies files or folders as multiple background jobs:

https://github.com/DeploymentResearch/DRFiles/blob/master/Scripts/NetworkFileCopy/Copy-FilesInParallel.ps1

Scenario #2 – Fan-Out file copy

This is great when the file server has a slower connection, and/or you have more than 25 lab machines. Pretty much, the more lab machines you have, the more the switch will have to work.

Below is a PowerShell script that copies files or folders as fanout jobs. I recommend testing different numbers from the fanout parameter, which controls how many computers each "parent" computer should reach out to.

https://github.com/DeploymentResearch/DRFiles/blob/master/Scripts/NetworkFileCopy/Copy-FilesFanoutTree.ps1

About the author

Johan Arwidmark

5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted

>