Samba server process model

Revision as of 22:04, 28 January 2019 by Timbeale (talk | contribs) (Add a page describing samba's process model)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The samba process has different models for how it manages client connections (e.g. RPC or LDAP connections). The process model is specified by the --model command line argument when Samba is first started. The available models are:

  • standard: The default. A separate process is forked for every accepted connection from a client.
  • prefork: A fixed number of worker processes are forked when samba first starts up, and the accepted client connections are distributed amongst these processes.
  • single: Everything gets done in a single process. This is recommended only for testing and debugging.

Note that these options only control the behaviour of the samba process, not the smbd process.

Prefork model