Hi,<div><br></div><div>we didn't take core dump. If we can reproduce the problem, I'll bring you the p *fcn content.<br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 10:08 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello!<br>
<div class="im"><br>
On Tue, Jul 12, 2011 at 09:31:07PM +0800, 杨镭 wrote:<br>
<br>
> After reload, all the worker processes, including newly forked ones, goes<br>
> straight to 100% CPU:<br>
<br>
</div>[...]<br>
<div class="im"><br>
> Also, we took backtrace for cache manger process:<br>
><br>
><br>
> Attaching to process 17306<br>
> ngx_http_file_cache_expire (data=<value optimized out>) at<br>
> src/http/ngx_http_file_cache.c:1096<br>
> 1096 if (fcn->count == 0) {<br>
> (gdb) bt<br>
> #0 ngx_http_file_cache_expire (data=<value optimized out>) at<br>
> src/http/ngx_http_file_cache.c:1096<br>
<br>
</div>Could you please show<br>
<br>
p *fcn<br>
<br>
?<br>
<br>
I think I see the problem, but just to make sure.<br>
<br>
If you are able to reproduce the problem please try the following<br>
patch:<br>
<br>
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c<br>
--- a/src/http/ngx_http_file_cache.c<br>
+++ b/src/http/ngx_http_file_cache.c<br>
@@ -1099,7 +1099,8 @@ ngx_http_file_cache_expire(ngx_http_file<br>
}<br>
<br>
if (fcn->deleting) {<br>
- continue;<br>
+ wait = 1;<br>
+ break;<br>
}<br>
<br>
p = ngx_hex_dump(key, (u_char *) &fcn->node.key,<br>
<br>
<br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>lei yang<br>
</div>