RE: How to make wsize=16M

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: linux-cifs-owner@xxxxxxxxxxxxxxx <linux-cifs-owner@xxxxxxxxxxxxxxx> On
> Behalf Of Xiaoli Feng
> Sent: Wednesday, January 16, 2019 6:36 PM
> To: Steve French <smfrench@xxxxxxxxx>
> Cc: CIFS <linux-cifs@xxxxxxxxxxxxxxx>; Xiong Zhou <xzhou@xxxxxxxxxx>
> Subject: How to make wsize=16M
> 
> Hello Steve,
>   From the mount.cifs man pages,the wsize can be 16M. I use samba server to
> test on upstream.
> But the wsize is always 8M if specify the wsize > 8M. How can I make
> wsize=16M?

The maximum write size is a negotiated value, which is typically server-limited to
no more than 8MB. Here are some Windows-specific values, I'm sure Samba server
defaults are similar.

https://msdn.microsoft.com/en-us/library/cc246805.aspx#Appendix_A_226

It's generally a bad idea to set a huge operation size. Such r/w operations tie up
the connection and cause many unpredictable and undesirable issues for other
traffic, in addition to the significant resources to marshal and unmarshal them.

Tom.
 
> My test:
> 
> # uname -r
> 5.0.0-rc1+
> # mount //localhost/test cifs -o
> user=root,password=redhat,wsize=16777216,vers=3.11
> # mount |grep cifs
> //localhost/test on /root/cifs type cifs
> (rw,relatime,vers=3.1.1,cache=strict,username=root,domain=,uid=0,noforceuid,
> gid=0,noforcegid,addr=0000:0000:0000:0000:0000:0000:0000:0001,file_mode
> =0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=83
> 88608,echo_interval=60,actimeo=1,user=root)
> 
> 
> --
> Best regards!
> XiaoLi Feng 冯小丽
> 
> Red Hat Software (Beijing) Co.,Ltd
> filesystem-qe Team
> IRC:xifeng,#channel: fs-qe
> Tel:+86-10-8388112
> 9/F, Raycom




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux