Remaining changes to implement the prefork process model
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Feb 2008 06:59:16 +0000 (17:59 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Feb 2008 06:59:16 +0000 (17:59 +1100)
commitb3c5fbec47739ee2bb26f900d1f564a36dc3ad82
tree6cbde07fd634a515b2f7fece08f36abc13b4be3d
parent3d5594e74da375a47cf15514926803352d256ca3
Remaining changes to implement the prefork process model

To use, run 'smbd -M prefork'

By default, only the smb service is preforked.  4 children are
created, and all listen for new connections.  The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept.  We need to look into the ideal number of worker children, as
well as load balancing behaviours.

To change, set:

prefork children : smb = 6

valid service names (smb in this example) match those in 'server services'.

Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3fbfdd943edfb7bafd7645b1a0c54e9)
source4/param/loadparm.c
source4/smbd/process_model.h
source4/smbd/process_model.mk
source4/smbd/process_prefork.c [new file with mode: 0644]
source4/smbd/process_standard.c
source4/smbd/process_thread.c