mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
b3c5fbec47
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 35313c0aa3
)
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# Server process model subsystem
|
|
|
|
################################################
|
|
# Start MODULE process_model_single
|
|
[MODULE::process_model_single]
|
|
INIT_FUNCTION = process_model_single_init
|
|
SUBSYSTEM = process_model
|
|
OBJ_FILES = \
|
|
process_single.o
|
|
# End MODULE process_model_single
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE process_model_standard
|
|
[MODULE::process_model_standard]
|
|
INIT_FUNCTION = process_model_standard_init
|
|
SUBSYSTEM = process_model
|
|
OBJ_FILES = \
|
|
process_standard.o
|
|
PRIVATE_DEPENDENCIES = SETPROCTITLE
|
|
# End MODULE process_model_standard
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE process_model_thread
|
|
[MODULE::process_model_thread]
|
|
INIT_FUNCTION = process_model_thread_init
|
|
SUBSYSTEM = process_model
|
|
OBJ_FILES = \
|
|
process_thread.o
|
|
PRIVATE_DEPENDENCIES = PTHREAD
|
|
# End MODULE process_model_thread
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE process_model_prefork
|
|
[MODULE::process_model_prefork]
|
|
INIT_FUNCTION = process_model_prefork_init
|
|
SUBSYSTEM = process_model
|
|
OBJ_FILES = \
|
|
process_prefork.o
|
|
# End MODULE process_model_thread
|
|
################################################
|
|
|
|
[SUBSYSTEM::process_model]
|
|
PRIVATE_PROTO_HEADER = process_model_proto.h
|
|
OBJ_FILES = \
|
|
process_model.o
|
|
PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL LIBSAMBA-CONFIG
|