From: Amos Jeffries Date: Fri, 8 May 2015 08:11:53 +0000 (-0700) Subject: Docs: shuffle SMP specific options to the top of squid.conf X-Git-Tag: merge-candidate-3-v1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50ff42a29f7d086cc32546f254aefbd29522f484;p=thirdparty%2Fsquid.git Docs: shuffle SMP specific options to the top of squid.conf The workers directive is required to be used before several other directives. It makes little sense to documents it after the controls which depend on it. Make a new config section to contain the SMP specific options. --- diff --git a/src/cf.data.pre b/src/cf.data.pre index a044926c9f..0b6e1067cd 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -376,6 +376,49 @@ DOC_START Replace this line with 'cache_peer' configuration. DOC_END +COMMENT_START + OPTIONS FOR SMP + ----------------------------------------------------------------------------- +COMMENT_END + +NAME: workers +TYPE: int +LOC: Config.workers +DEFAULT: 1 +DEFAULT_DOC: SMP support disabled. +DOC_START + Number of main Squid processes or "workers" to fork and maintain. + 0: "no daemon" mode, like running "squid -N ..." + 1: "no SMP" mode, start one main Squid process daemon (default) + N: start N main Squid process daemons (i.e., SMP mode) + + In SMP mode, each worker does nearly all what a single Squid daemon + does (e.g., listen on http_port and forward HTTP requests). +DOC_END + +NAME: cpu_affinity_map +TYPE: CpuAffinityMap +LOC: Config.cpuAffinityMap +DEFAULT: none +DEFAULT_DOC: Let operating system decide. +DOC_START + Usage: cpu_affinity_map process_numbers=P1,P2,... cores=C1,C2,... + + Sets 1:1 mapping between Squid processes and CPU cores. For example, + + cpu_affinity_map process_numbers=1,2,3,4 cores=1,3,5,7 + + affects processes 1 through 4 only and places them on the first + four even cores, starting with core #1. + + CPU cores are numbered starting from 1. Requires support for + sched_getaffinity(2) and sched_setaffinity(2) system calls. + + Multiple cpu_affinity_map options are merged. + + See also: workers +DOC_END + COMMENT_START OPTIONS FOR AUTHENTICATION ----------------------------------------------------------------------------- @@ -9543,44 +9586,6 @@ DOC_START not all I/O types supports large values (eg on Windows). DOC_END -NAME: workers -TYPE: int -LOC: Config.workers -DEFAULT: 1 -DEFAULT_DOC: SMP support disabled. -DOC_START - Number of main Squid processes or "workers" to fork and maintain. - 0: "no daemon" mode, like running "squid -N ..." - 1: "no SMP" mode, start one main Squid process daemon (default) - N: start N main Squid process daemons (i.e., SMP mode) - - In SMP mode, each worker does nearly all what a single Squid daemon - does (e.g., listen on http_port and forward HTTP requests). -DOC_END - -NAME: cpu_affinity_map -TYPE: CpuAffinityMap -LOC: Config.cpuAffinityMap -DEFAULT: none -DEFAULT_DOC: Let operating system decide. -DOC_START - Usage: cpu_affinity_map process_numbers=P1,P2,... cores=C1,C2,... - - Sets 1:1 mapping between Squid processes and CPU cores. For example, - - cpu_affinity_map process_numbers=1,2,3,4 cores=1,3,5,7 - - affects processes 1 through 4 only and places them on the first - four even cores, starting with core #1. - - CPU cores are numbered starting from 1. Requires support for - sched_getaffinity(2) and sched_setaffinity(2) system calls. - - Multiple cpu_affinity_map options are merged. - - See also: workers -DOC_END - NAME: force_request_body_continuation TYPE: acl_access LOC: Config.accessList.forceRequestBodyContinuation