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)
commit35313c0aa3fbfdd943edfb7bafd7645b1a0c54e9
tree5fcce787ebf31e270da8b7066fb1fb1af844d0d3
parentc961e7d74e33a0dd61b1053620fb41521322e20d
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
source/param/loadparm.c
source/smbd/process_model.h
source/smbd/process_model.mk
source/smbd/process_prefork.c [new file with mode: 0644]
source/smbd/process_standard.c
source/smbd/process_thread.c