From e8dd0b99e413c100d8923a2e8d05ccc5d7967d24 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Thu, 7 Feb 2019 13:50:40 +1300 Subject: [PATCH] man pages: document prefork process model Document the process model options -M BUG: https://bugzilla.samba.org/show_bug.cgi?id=13765 Signed-off-by: Gary Lockyer Signed-off-by: Tim Beale Reviewed-by: Douglas Bagnall Autobuild-User(master): Tim Beale Autobuild-Date(master): Thu Jan 31 04:25:14 CET 2019 on sn-devel-144 (manual merge of commit 4ecdcc4b462d03bec3ec36ba1b90f45d9977be8b, with description updated for v4.9 behaviour) --- docs-xml/manpages/samba.8.xml | 35 ++++++++++++++++++++++++---- docs-xml/smbdotconf/base/preforkchildren.xml | 4 +++- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/docs-xml/manpages/samba.8.xml b/docs-xml/manpages/samba.8.xml index 529b687..0d5affd 100644 --- a/docs-xml/manpages/samba.8.xml +++ b/docs-xml/manpages/samba.8.xml @@ -101,14 +101,39 @@ - -M model + -M|--model This parameter can be used to specify the "process model" samba should use. This determines how concurrent clients are handled. Available process - models include single (everything in - a single process), standard (similar - behaviour to that of Samba 3), thread - (single process, different threads. + models include: + + single + All Samba services run in a single process. This is + not recommended for production configurations. + + + standard + A process is created for each Samba service, + and for those services that support it (currently only + LDAP and NETLOGON) a new processes is started + for each new client connection. + + prefork + A process is started for each Samba service, and a + fixed number of worker processes are started for those + services that support it (currently only LDAP). + The client connections are then shared amongst the worker + processes. + Requests for services not supporting prefork are handled + by a single process for that service. + The number of prefork worker processes started is + controlled by the + smb.conf + 5 parameter + , + which defaults to 1. + + diff --git a/docs-xml/smbdotconf/base/preforkchildren.xml b/docs-xml/smbdotconf/base/preforkchildren.xml index 720e439..f2f55a5 100644 --- a/docs-xml/smbdotconf/base/preforkchildren.xml +++ b/docs-xml/smbdotconf/base/preforkchildren.xml @@ -4,7 +4,9 @@ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> This option controls the number of worker processes that are - started for each service when prefork process model is enabled. + started for each service when prefork process model is enabled + (see samba + 8 -M). The prefork children are only started for those services that support prefork (currently only ldap). For processes that don't support preforking all requests are handled by a single process -- 2.7.4