Hello.<br><br><div class="gmail_quote">On 25 July 2012 23:29, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:ne@vbart.ru" target="_blank">ne@vbart.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> * Is the number of buffers of zero size small? As I understand, memory of<br>
> the chain-link is not recycled until the http request is not fully<br>
> processed.<br>
<br>
</div>But it is actively reused. If you look at the ngx_alloc_chain_link()<br>
function you will find that it tries to get a link from pool->chain,<br>
while ngx_free_chain() puts chain links to pool->chain.<br>
<br></blockquote><div><br></div><div>And is ngx_free_chain(.) really called form <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ngx_http_charset_filter_</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">module.c ? It seems, that it has been added to </span><span style="white-space:pre-wrap">ngx_chain_update_chains(.)</span></div>
<div><span style="white-space:pre-wrap">(</span> <a href="http://mailman.nginx.org/pipermail/nginx-devel/2011-September/001178.html">http://mailman.nginx.org/pipermail/nginx-devel/2011-September/001178.html</a> ), but this function is not used very often. Modules seem to process buffers own way.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wbr, Valentin V. Bartenev<br>
</blockquote></div><br><div>KR, Daniel</div>