From: Yann Ylavic Date: Sun, 1 Feb 2015 22:13:15 +0000 (+0000) Subject: Follow up to r1635521: ListenCoresBucketsRatio's manual. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3fc56298caf9d8d0fb5e2ff8fa9370dcc7a425;p=thirdparty%2Fapache%2Fhttpd.git Follow up to r1635521: ListenCoresBucketsRatio's manual. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1656368 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mpm_common.xml b/docs/manual/mod/mpm_common.xml index 59b485268c9..ac794229a94 100644 --- a/docs/manual/mod/mpm_common.xml +++ b/docs/manual/mod/mpm_common.xml @@ -250,6 +250,44 @@ discussion of the Address already in use error message, including other causes. + +ListenCoresBucketsRatio +Ratio between the number of CPU cores (online) and the number of +listeners' buckets +ListenCoresBucketsRatio ratio +ListenCoresBucketsRatio 0 (disabled) +server config + +event +prefork +worker +Available in Apache HTTP Server 2.4.13, with a kernel supporting +the socket option SO_REUSEPORT and distributing new connections +evenly accross listening processes' (or threads') sockets using it (eg. Linux +3.9 and later, but not the current implementations of SO_REUSEPORT +in *BSDs. + + +

A ratio between the number of (online) CPU cores and the + number of listeners' buckets can be used to make Apache HTTP Server create + num_cpu_cores / ratio listening buckets, each containing its + own Listen-ing socket(s) on the same port(s), and + then make each child handle a single bucket (with round-robin distribution + of the buckets at children creation time).

+ +

ListenCoresBucketsRatio can improve the + scalability when accepting new connections is/becomes the bottleneck. + On systems with a large number of CPU cores, enabling this feature has + been tested to show significant performances improvement and shorter + responses time.

+ +

There must be at least twice the number of CPU cores than the + configured ratio for this to be active. The recommended + ratio is 8, hence at least 16 + cores should be available at runtime when this value is used.

+
+
+ ListenBackLog Maximum length of the queue of pending connections