Welcome! Log In Create A New Profile

Advanced

map_hash_bucket_size, map_hash_max_size, and memory usage

November 04, 2014 12:27PM
I was hoping someone could clarify how exactly map_hash_bucket_size and map_hash_max_size should be set and the impact it has on memory.

For map_hash_bucket_size, it says it should be a multiple of the processor's line cache size. Under what circumstances does it make sense or would it be necessary to move away from the default cache size?

For map_hash_max_size, is this just the maximum size of the hash? If so, what is the metric: bytes? potential options? something else? Is it viewed as the maximum size of all maps or just each specific map directive?

Also, do either of these values impact the memory that nginx uses? For example, if I have 200 maps will ones with a higher map_hash_bucket_size use more memory than one with a lower map_hash_bucket_size? Or a higher map_hash_max_size?

Thanks!
Subject Author Posted

map_hash_bucket_size, map_hash_max_size, and memory usage

abstein2 November 04, 2014 12:27PM

Re: map_hash_bucket_size, map_hash_max_size, and memory usage

Maxim Dounin November 05, 2014 07:28AM

Re: map_hash_bucket_size, map_hash_max_size, and memory usage

abstein2 November 07, 2014 10:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready