Welcome! Log In Create A New Profile

Advanced

Re: Nginx performance data

James Read
January 08, 2022 05:04PM
On Sat, Jan 8, 2022 at 9:21 PM Francis Daly <francis@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@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx performance data

James Read January 04, 2022 07:20PM

Re: Nginx performance data

James Read January 07, 2022 06:38AM

RE: Nginx performance data

Reinis Rozitis January 07, 2022 07:20AM

Re: Nginx performance data

James Read January 07, 2022 07:48AM

RE: Nginx performance data

Reinis Rozitis January 08, 2022 05:42AM

Re: Nginx performance data

James Read January 08, 2022 03:52PM

RE: Nginx performance data

Reinis Rozitis January 08, 2022 07:48PM

Re: Nginx performance data

James Read January 08, 2022 08:38PM

Re: Nginx performance data

James Read January 13, 2022 07:52PM

Re: Nginx performance data

James Read January 23, 2022 06:42PM

Re: Nginx performance data

Anoop Alias January 07, 2022 06:56AM

Re: Nginx performance data

James Read January 07, 2022 08:04AM

Re: Nginx performance data

Anoop Alias January 07, 2022 08:14AM

Re: Nginx performance data

James Read January 07, 2022 08:38AM

Re: Nginx performance data

Maxim Dounin January 07, 2022 06:58PM

Re: Nginx performance data

James Read January 08, 2022 03:56PM

Re: Nginx performance data

Francis Daly January 08, 2022 04:22PM

Re: Nginx performance data

James Read January 08, 2022 05:04PM

Re: Nginx performance data

Aleksandar Lazic January 10, 2022 06:42AM

Re: Nginx performance data

James Read January 10, 2022 12:48PM

Re: Nginx performance data

Paul January 10, 2022 06:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready