Writing a huge file from memory to network share C++

  • Thread starter Thread starter Andy_435
  • Start date Start date
A

Andy_435

Guest
When I try to write a huge file (40 GB) from memory to a network share I can only achieve a transfer rate of 350 MB/s. But if I copy a file from the system to the same network share Windows copies with a transfer rate of more than 1GB/s. (10Gbit network)

I tried WriteFile(), WriteFileEx(), fwrite(), _write() always the same result. I tried different block sizes for the write commands no difference.

What is the difference in the Windows copy command?

It should be possible to write a file from memory to a network share as fast as the Windows copy command does.


best regards!

Continue reading...
 
Back
Top