From aec57e2613f2fae3f952f2ca806d8e55ab4bf332 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 9 Oct 2006 14:03:16 +0000 Subject: align hash bucket size to cache line --- src/http/modules/ngx_http_proxy_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_proxy_module.c') diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 0e6bb1d6f..f85454968 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1823,7 +1823,7 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) hash.hash = &conf->upstream.hide_headers_hash; hash.key = ngx_hash_key_lc; hash.max_size = 512; - hash.bucket_size = 64; + hash.bucket_size = ngx_align(64, ngx_cacheline_size); hash.name = "proxy_hide_headers_hash"; hash.pool = cf->pool; hash.temp_pool = NULL; -- cgit