Is SMB multichannel enabled? (Client)
Opened this issue · 2 comments
The docs do not mention this. I dont think it is.
In the case it is not enabled, there is a reason for that?
No idea. We just use the default options for CIFS.
It seems the default is disabled? I can not get the related info from "mount 8 mount.cifs" and "mount.cifs --help".
If so, what parameters shall we add in order to enable it when running mount -t cifs?
Sure
"-o multichannel" is the command for cifs to enable multichannel, by default this is disabled
"-o max_channels=N" sets the max amount of parallel channels, by default is 2
I do not recommend to enable this by default, a bad network/server configuration may bring smb performance down, for example if the server has several nics and some of them are on a diferent networks the SMB will use all routes to the server, even the ones on diferent networks that go trought the router to get there.
But in general, multiple nics on server and one or multiple nics on clients, if all of them are on the same network, works out of the box by adding those commands.
I already tested using shell and mount -t cifs -o multichannel -o max_channels=x -o username=x //serverip/share /local/path works.