LX0-104 · Question #592
The response times on a Samba server are gradually increasing, so it is decided to experiment with various socket options in smb.conf. Which of the following are valid values for this parameter? (Choo
The correct answer is A. TCP_NODELAY D. IPTOS_LOWDELAY E. SO_KEEPALIVE. To improve Samba server response times, valid socket options for smb.conf include TCP_NODELAY to disable Nagle's algorithm, IPTOS_LOWDELAY to prioritize low latency, and SO_KEEPALIVE to maintain connections.
Question
Options
- ATCP_NODELAY
- BSO_NOBROADCAST
- CSO_TXBUF
- DIPTOS_LOWDELAY
- ESO_KEEPALIVE
How the community answered
(24 responses)- A88% (21)
- B4% (1)
- C8% (2)
Why each option
To improve Samba server response times, valid socket options for `smb.conf` include `TCP_NODELAY` to disable Nagle's algorithm, `IPTOS_LOWDELAY` to prioritize low latency, and `SO_KEEPALIVE` to maintain connections.
TCP_NODELAY is a valid socket option that disables the Nagle algorithm, allowing small packets to be sent immediately without waiting for more data, which can reduce latency.
SO_NOBROADCAST is not typically listed as a direct valid string value for Samba's `socket options` parameter; while `SO_BROADCAST` is, `SO_NOBROADCAST` as a negative flag is not commonly configured via this parameter's string list.
SO_TXBUF is not a standard or documented valid socket option name for Samba's `socket options` parameter; `SO_SNDBUF` is the correct standard name for setting the send buffer size, but even that is typically a value with a size, not just a flag.
IPTOS_LOWDELAY is a valid socket option that sets the IP Type-of-Service header to prioritize low delay, which can improve response times for interactive traffic.
SO_KEEPALIVE is a valid socket option that enables the periodic transmission of keep-alive messages to detect if a connection is still active, helping manage idle connections and potentially improving perceived responsiveness.
Concept tested: Samba socket options for performance
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html#SOCKETOPTIONS
Topics
Community Discussion
No community discussion yet for this question.