On 02/09/14 21:24, Nils Goroll wrote:
> Or, alternatively, realize that we need a larg-ish stack anyway

For all those who have not yet read pcrestack(3):

       As a very rough rule of thumb, you should reckon on about 500 bytes per
       recursion. Thus, if you want to limit your stack  usage  to
       8Mb, you should set the limit at 16000 recursions. A 64Mb stack, on the
       other hand, can support around 128000 recursions.

pcre_match_limit_recursion 10000 (default)
thread_pool_stack          48k [bytes] (default)

So these obviously do not fit at all.

We we opt for keeping pcre on the stack, we should consider to auto-tune either
to sensible values.

Nils

_______________________________________________
varnish-dev mailing list
varnish-dev@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to