Change stream/file buffer size of a windows application using default 4k buffer


is there way change default buffer size file/stream copy operations in .net application using (presumably) default buffer sizes when not have access source code?

i using program performs set of file copies across our wan slow. uses smb2 copy files 1 place using network ucn path.

on running wireshark can see files (typically 1mb, across our 100mb wan latency of 7ms) being split 4k packets (which default buffer size, believe .net stream operations), sent share using smb2, there fair amount of tcp reconstruction operations being carried out too, , file transfer taking 3 seconds.

i ran similar operation using file copy , robocopy , sent 65k packets, there absolutely no tcp packet reconstruction operations, sequential list of 65k smb2 requests , takes milliseconds.

any appreciated.

you might try xcopy using /j parameter (no buffering)

https://technet.microsoft.com/en-us/library/cc771254%28ws.10%29.aspx?f=255&mspperror=-2147217396

for .net stuff i'd ask somewhere on msdn or possible here.

https://social.msdn.microsoft.com/forums/windowsdesktop/en-us/home?forum=windowsgeneraldevelopmentissues

 

 



regards, dave patrick ....
microsoft certified professional
microsoft mvp [windows server] datacenter management

disclaimer: posting provided "as is" no warranties or guarantees, , confers no rights.



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607