LFCS · 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…
The correct answer is D. Set max xmit = 32768 in smb.conf. To limit the maximum SMB packet size that a Samba server will accept, the max xmit parameter must 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
(42 responses)- A2% (1)
- B7% (3)
- C2% (1)
- D88% (37)
Why each option
To limit the maximum SMB packet size that a Samba server will accept, the `max xmit` parameter must be set in the `smb.conf` file.
Modifying `/proc/sys/smb/max-rx` is not the standard or correct way to configure Samba's maximum transmission unit for SMB packets; `/proc` entries are for kernel parameters, not specific Samba service settings.
The `smbd` daemon does not have a `-x` option for setting the maximum packet size; command-line options are typically for debugging or specific operational modes.
The `socket options` parameter configures low-level TCP socket behavior, such as buffer sizes or `SO_KEEPALIVE`, and does not directly control the maximum SMB packet size for client requests.
The `max xmit` parameter in the `smb.conf` file directly controls the maximum size of SMB packets that the Samba server will send and receive, thereby limiting the size of requests it can accept to the specified byte value.
Concept tested: Samba SMB packet size configuration
Source: https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.