Nginx performance data

James Read jamesread5737 at gmail.com
Sat Jan 8 22:02:00 UTC 2022


On Sat, Jan 8, 2022 at 9:21 PM Francis Daly <francis at daoine.org> wrote:

> On Sat, Jan 08, 2022 at 08:53:44PM +0000, James Read wrote:
> > > On Fri, Jan 07, 2022 at 01:36:04PM +0000, James Read wrote:
>
> Hi there,
>
> > > > Does anybody know what timeout is used in Nginx call to
> > > > epoll_wait()?
>
> > which of the many source files should I look in to get the answer?
>
> http://nginx.org/en/download.html
>
> $ grep -rl epoll_wait nginx-1.21.5
> nginx-1.21.5/src/http/ngx_http_upstream.c
> nginx-1.21.5/src/event/modules/ngx_epoll_module.c
>
> I'd probably start there.
>

Yeah. Thanks. In line 800 of
nginx-1.21.5/src/event/modules/ngx_epoll_module.c it says events =
epoll_wait(ep, event_list, (int) nevents, timer); Thus the variable timer
is used. Line 123 and 124 seem to give the definition of the function call
which supplies the timer variable static ngx_int_t
ngx_epoll_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
    ngx_uint_t flags);

So then I did:

grep -rl ngx_epoll_process_events nginx-1.21.5

and got:

nginx-1.21.5/src/event/modules/ngx_epoll_module.c

I can't find any calls to that function in that file. Only the
definition of the function itself. So I still have no idea how the timer
variable is calculated.

thanks,
James Read


>
> Good luck with it,
>
>         f
> --
> Francis Daly        francis at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220108/36436414/attachment.htm>


More information about the nginx mailing list