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/ngx_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http.c') diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 1c930ed2e..7a1eb89b3 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -365,7 +365,7 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) hash.hash = &cmcf->headers_in_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 = "headers_in_hash"; hash.pool = cf->pool; hash.temp_pool = NULL; -- cgit