Ralph Boehme
2023-Aug-22 06:50 UTC
[Samba] Increase data length for SMB2 write and read requests for Windows 10 clients
On 8/21/23 22:55, Jeremy Allison wrote:> On Mon, Aug 21, 2023 at 03:19:59PM +0200, Ralph Boehme wrote: >> On 8/21/23 11:53, Jones Syue ??? via samba wrote: >>>> OH - that's *really* interesting ! I wonder how it is >>>> changing the SMB3+ redirector to do this ? >>> >>> It looks like applications could do something and give a hint to SMB3+ >>> redirector, so far not quite sure how to make it, >>> per process monitor (procmon) could show that write I/O size seems >>> could be pass from the application layers, >> >> well, sure, the application layer drives IO with the IO size it >> chooses. But when the application layer issues IOs larger then the >> maximum IO size allowed by SMB (8 MB iirc), the Windows SMB kernel >> client will segment the larger application segments into smaller ones. > > Fastcopy is doing *something* weird :-). > > 1. FastCopy (FastCopy.exe), 8MB (need to revise FastCopy default setup) > Process Name??? Operation?????? Path??? Detail > System? TCP Send??????? 10.19.7.63:64845 -> 10.19.250.98:445??? Length: > 8388724, startime: 3459115, endtime: 3459149, seqnum: 0, connid: 0 > System? TCP Receive???? 10.19.7.63:64845 -> 10.19.250.98:445??? Length: > 84, seqnum: 0, connid: 0 > FastCopy.exe??? WriteFile?????? \\10.19.250.98\Public\1GB.img?? Offset: > 92,274,688, Length: 8,388,608, Priority: Normal > > I wonder if it has it's own SMB client code > built in ? > > Either that or it knows what parameters to change > in the SMB redirector to request 8MB IO.I don't get it. Iirc 8 MB is the default max io size the kernel client will use which is also, iirc, the limit of the protocol. -slow -- Ralph Boehme, Samba Team https://samba.org/ SerNet Samba Team Lead https://sernet.de/en/ LinkedIn https://www.linkedin.com/in/ralph-b%C3%B6hme-43917162/ SAMBA+ Samba packages https://samba.plus/ SAMBA+ AIX Webinar https://samba.plus/samba-webinars -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20230822/56e3556e/OpenPGP_signature.sig>
Jeremy Allison
2023-Aug-22 16:02 UTC
[Samba] Increase data length for SMB2 write and read requests for Windows 10 clients
On Tue, Aug 22, 2023 at 08:50:03AM +0200, Ralph Boehme wrote:>On 8/21/23 22:55, Jeremy Allison wrote: >>On Mon, Aug 21, 2023 at 03:19:59PM +0200, Ralph Boehme wrote: >>>On 8/21/23 11:53, Jones Syue ??? via samba wrote: >>>>>OH - that's *really* interesting ! I wonder how it is >>>>>changing the SMB3+ redirector to do this ? >>>> >>>>It looks like applications could do something and give a hint to SMB3+ >>>>redirector, so far not quite sure how to make it, >>>>per process monitor (procmon) could show that write I/O size seems >>>>could be pass from the application layers, >>> >>>well, sure, the application layer drives IO with the IO size it >>>chooses. But when the application layer issues IOs larger then the >>>maximum IO size allowed by SMB (8 MB iirc), the Windows SMB kernel >>>client will segment the larger application segments into smaller >>>ones. >> >>Fastcopy is doing *something* weird :-). >> >>1. FastCopy (FastCopy.exe), 8MB (need to revise FastCopy default setup) >>Process Name??? Operation?????? Path??? Detail >>System? TCP Send??????? 10.19.7.63:64845 -> 10.19.250.98:445??? >>Length: 8388724, startime: 3459115, endtime: 3459149, seqnum: 0, >>connid: 0 >>System? TCP Receive???? 10.19.7.63:64845 -> 10.19.250.98:445??? >>Length: 84, seqnum: 0, connid: 0 >>FastCopy.exe??? WriteFile?????? \\10.19.250.98\Public\1GB.img?? >>Offset: 92,274,688, Length: 8,388,608, Priority: Normal >> >>I wonder if it has it's own SMB client code >>built in ? >> >>Either that or it knows what parameters to change >>in the SMB redirector to request 8MB IO. > >I don't get it. Iirc 8 MB is the default max io size the kernel client >will use which is also, iirc, the limit of the protocol.Don't get what ? The FastCopy.exe above is using 8MB write sizes.
Maybe Matching Threads
- Increase data length for SMB2 write and read requests for Windows 10 clients
- Increase data length for SMB2 write and read requests for Windows 10 clients
- Increase data length for SMB2 write and read requests for Windows 10 clients
- Increase data length for SMB2 write and read requests for Windows 10 clients
- Increase data length for SMB2 write and read requests for Windows 10 clients