LX0-104 · Question #643
A software vendor states that their SMB client software may perform better if the maximum packet size of SMB commands is limited to 32768 bytes. How would Samba be instructed to limit the size of requ
The correct answer is D. Set max xmit = 32768 in smb.conf.. To limit the maximum SMB packet size Samba accepts, the max xmit parameter should be set in the smb.conf file.
Question
Options
- Aecho 32768 > /proc/sys/smb/max-rx
- BStart the smbd daemon with the -x 32768 option.
- CSet socket options = TCP_MAXRX_HALF in smb.conf.
- DSet max xmit = 32768 in smb.conf.
How the community answered
(28 responses)- A4% (1)
- B4% (1)
- D93% (26)
Why each option
To limit the maximum SMB packet size Samba accepts, the `max xmit` parameter should be set in the `smb.conf` file.
This path is not a standard or valid kernel parameter for controlling Samba's maximum receive buffer size.
The `smbd` daemon does not have a `-x` option for setting the maximum transmit size.
`socket options = TCP_MAXRX_HALF` affects TCP socket behavior for receiving data, but it does not directly control the maximum SMB packet size that Samba processes or sends.
The `max xmit` parameter in the `smb.conf` file controls the maximum size of data that Samba will attempt to send in a single SMB packet. Setting `max xmit = 32768` will instruct the Samba server to limit the size of requests it will accept to 32768 bytes, optimizing compatibility with the specified client.
Concept tested: Samba smb.conf parameters, max xmit
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.