Welcome! Log In Create A New Profile

Advanced

Re: cannot build variables_hash

Maxim Dounin
July 31, 2013 10:04AM
Hello!

On Tue, Jul 30, 2013 at 11:49:35AM -0700, Yichun Zhang (agentzh) wrote:

> Hello!
>
> On Mon, Jul 29, 2013 at 2:44 PM, John Watson wrote:
> > It seems the issue is v0.21 of http://wiki.nginx.org/NginxHttpSRCacheModule
> > that causes this issue. I'll file a bug with agentzh on his Github repo.
> >
>
> Just for the reference, there is no bugs in ngx_srcache.
>
> It's just that enabling many nginx modules (including standard ones
> and 3rd-party ones) exceeds the variables_hash_max_size limit (default
> value). See below for more details:
>
> https://github.com/agentzh/srcache-nginx-module/issues/21
>
> Given the current rich ecosystem of nginx, maybe the nginx core should
> increase the default value of variables_hash_max_size? Not sure
> though.

How many variables are in total in the configuration in question?
Standard nginx with almost all modules compiled in (and a few
extra modules) here has just 114 variables, and 512 looks big
enough.

I suspect the real problem is hash collisions. Especially this used
to hit people under qemu where cache line size of an emulated CPU
is detected as 32 by nginx, see here:

http://trac.nginx.org/nginx/ticket/352

Not sure how to properly address it though. Right now I think
just automatically doubling bucket_size if we wasn't able to build
hash might be a good idea.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

cannot build variables_hash

John Watson July 24, 2013 06:50PM

Re: cannot build variables_hash

Francis Daly July 24, 2013 08:38PM

Re: cannot build variables_hash

nginxorg July 25, 2013 06:56AM

Re: cannot build variables_hash

John Watson July 29, 2013 05:46PM

Re: cannot build variables_hash

Yichun Zhang (agentzh) July 30, 2013 02:50PM

Re: cannot build variables_hash

Maxim Dounin July 31, 2013 10:04AM

Re: cannot build variables_hash

Yichun Zhang (agentzh) July 31, 2013 07:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
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