nerdexam
CompTIA

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.

Essential System Services

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

(28 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    93% (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.

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

This path is not a standard or valid kernel parameter for controlling Samba's maximum receive buffer size.

BStart the smbd daemon with the -x 32768 option.

The `smbd` daemon does not have a `-x` option for setting the maximum transmit size.

CSet socket options = TCP_MAXRX_HALF in smb.conf.

`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.

DSet max xmit = 32768 in smb.conf.Correct

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

#Samba configuration#SMB#performance tuning#packet size

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice