details: http://hg.nginx.org/nginx/rev/ea3ba1ce7014 branches: changeset: 6309:ea3ba1ce7014 user: Valentin Bartenev <vb...@nginx.com> date: Mon Nov 30 16:27:33 2015 +0300 description: Increased the default "connection_pool_size" on 64-bit platforms.
The previous default of 256 bytes isn't enough and results in two allocations on each accepted connection, which is suboptimal. diffstat: src/http/ngx_http_core_module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 7e241b36819d -r ea3ba1ce7014 src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c Mon Nov 30 12:04:29 2015 +0300 +++ b/src/http/ngx_http_core_module.c Mon Nov 30 16:27:33 2015 +0300 @@ -3503,7 +3503,7 @@ ngx_http_core_merge_srv_conf(ngx_conf_t /* TODO: it does not merge, it inits only */ ngx_conf_merge_size_value(conf->connection_pool_size, - prev->connection_pool_size, 256); + prev->connection_pool_size, NGX_PTR_SIZE * 64); ngx_conf_merge_size_value(conf->request_pool_size, prev->request_pool_size, 4096); ngx_conf_merge_msec_value(conf->client_header_timeout, _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel