Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 751:bae59a740c40
align hash bucket size to cache line
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Oct 2006 14:03:16 +0000 |
parents | e3df50b4a4fd |
children | 63b9dc652c3d |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Fri Oct 06 15:06:02 2006 +0000 +++ b/src/http/ngx_http_upstream.c Mon Oct 09 14:03:16 2006 +0000 @@ -2941,7 +2941,7 @@ hash.hash = &umcf->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 = "upstream_headers_in_hash"; hash.pool = cf->pool; hash.temp_pool = NULL;