Samba server process model

From SambaWiki
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 printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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