nerdexam
Linux_Foundation

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.

Submitted by layla.eg· Apr 18, 2026Service Configuration

Question

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 requests it will accept?

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)
  • A
    2% (1)
  • B
    7% (3)
  • C
    2% (1)
  • D
    88% (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.

Aecho 32768 > /proc/sys/smb/max-rx

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.

BStart the smbd daemon with the -x 32768 option.

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.

CSet socket options = TCP_MAXRX_HALF in smb.conf.

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.

DSet max xmit = 32768 in smb.conf.Correct

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

#Samba configuration#SMB protocol tuning#smb.conf#Network service tuning

Community Discussion

No community discussion yet for this question.

Full LFCS Practice