Klaus Demo nginx / aec57e2
align hash bucket size to cache line Igor Sysoev 15 years ago
4 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
18251825 hash.hash = &conf->upstream.hide_headers_hash;
18261826 hash.key = ngx_hash_key_lc;
18271827 hash.max_size = 512;
1828 hash.bucket_size = 64;
1828 hash.bucket_size = ngx_align(64, ngx_cacheline_size);
18291829 hash.name = "fastcgi_hide_headers_hash";
18301830 hash.pool = cf->pool;
18311831 hash.temp_pool = NULL;
18221822 hash.hash = &conf->upstream.hide_headers_hash;
18231823 hash.key = ngx_hash_key_lc;
18241824 hash.max_size = 512;
1825 hash.bucket_size = 64;
1825 hash.bucket_size = ngx_align(64, ngx_cacheline_size);
18261826 hash.name = "proxy_hide_headers_hash";
18271827 hash.pool = cf->pool;
18281828 hash.temp_pool = NULL;
364364 hash.hash = &cmcf->headers_in_hash;
365365 hash.key = ngx_hash_key_lc;
366366 hash.max_size = 512;
367 hash.bucket_size = 64;
367 hash.bucket_size = ngx_align(64, ngx_cacheline_size);
368368 hash.name = "headers_in_hash";
369369 hash.pool = cf->pool;
370370 hash.temp_pool = NULL;
29402940 hash.hash = &umcf->headers_in_hash;
29412941 hash.key = ngx_hash_key_lc;
29422942 hash.max_size = 512;
2943 hash.bucket_size = 64;
2943 hash.bucket_size = ngx_align(64, ngx_cacheline_size);
29442944 hash.name = "upstream_headers_in_hash";
29452945 hash.pool = cf->pool;
29462946 hash.temp_pool = NULL;