align hash bucket size to cache line
Igor Sysoev
15 years ago
1825 | 1825 |
hash.hash = &conf->upstream.hide_headers_hash;
|
1826 | 1826 |
hash.key = ngx_hash_key_lc;
|
1827 | 1827 |
hash.max_size = 512;
|
1828 | |
hash.bucket_size = 64;
|
|
1828 |
hash.bucket_size = ngx_align(64, ngx_cacheline_size);
|
1829 | 1829 |
hash.name = "fastcgi_hide_headers_hash";
|
1830 | 1830 |
hash.pool = cf->pool;
|
1831 | 1831 |
hash.temp_pool = NULL;
|
1822 | 1822 |
hash.hash = &conf->upstream.hide_headers_hash;
|
1823 | 1823 |
hash.key = ngx_hash_key_lc;
|
1824 | 1824 |
hash.max_size = 512;
|
1825 | |
hash.bucket_size = 64;
|
|
1825 |
hash.bucket_size = ngx_align(64, ngx_cacheline_size);
|
1826 | 1826 |
hash.name = "proxy_hide_headers_hash";
|
1827 | 1827 |
hash.pool = cf->pool;
|
1828 | 1828 |
hash.temp_pool = NULL;
|
364 | 364 |
hash.hash = &cmcf->headers_in_hash;
|
365 | 365 |
hash.key = ngx_hash_key_lc;
|
366 | 366 |
hash.max_size = 512;
|
367 | |
hash.bucket_size = 64;
|
|
367 |
hash.bucket_size = ngx_align(64, ngx_cacheline_size);
|
368 | 368 |
hash.name = "headers_in_hash";
|
369 | 369 |
hash.pool = cf->pool;
|
370 | 370 |
hash.temp_pool = NULL;
|
2940 | 2940 |
hash.hash = &umcf->headers_in_hash;
|
2941 | 2941 |
hash.key = ngx_hash_key_lc;
|
2942 | 2942 |
hash.max_size = 512;
|
2943 | |
hash.bucket_size = 64;
|
|
2943 |
hash.bucket_size = ngx_align(64, ngx_cacheline_size);
|
2944 | 2944 |
hash.name = "upstream_headers_in_hash";
|
2945 | 2945 |
hash.pool = cf->pool;
|
2946 | 2946 |
hash.temp_pool = NULL;
|