Welcome! Log In Create A New Profile

Advanced

Re: RE: Nginx feature request

April 21, 2009 09:56PM
2009/4/22 Igor Sysoev

> On Tue, Apr 21, 2009 at 04:43:05PM +0200, Roger Pack wrote:
>
> > > Nginx server in front could take care of. I'd rather see something like
> > > Libevent (i.e. an asynchronous HTTP server engine) with embedded
> Python.
> > > The core of Nginx is probably similar to Libevent with its HTTP layer.
> > > Would be interesting to find out how Nginx core compares to Libevent
> > > with HTTP layer in terms of performance.
> >
> > Being somewhat of a newbie, just throwing this out.
> > It would indeed be interesting to see if nginx with a libev core would
> > be faster than the current (ex:
> >
> http://www.zenebo.com/word/asynchronous-programming/lighttz-a-simple-and-fast-web-server/
> )
> >
> > Though probably wouldn't be tons faster.
> > Thoughts?
>
> I do not think that using libev in nginx will change anything.
>
> Probably, the following settings may slightly improve or worsen:
>
> 1) turing sendfile off: it may be not effective on small files.
> Also not that lighttz does not read file at all each request.
>
> 2) using open file cache, it saves 3 syscalls per request (open, fstat,
> close):
>
> open_file_cache max=1000 inactive=20s;
> open_file_cache_valid 30s;
> open_file_cache_min_uses 2;
> open_file_cache_errors on;
>
> 3) using buffered log:
>
> access_log /path/to/access.log buffer=32k;
>
> or turing it off at all:
>
> access_log off;
>
> 4) using 1 worker.
>

1 worker for each core?


>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
Subject Author Posted

Re: RE: Nginx feature request

Roger Pack April 21, 2009 10:43AM

Re: RE: Nginx feature request

Igor Sysoev April 21, 2009 04:10PM

Re: RE: Nginx feature request

Joe Bofh April 21, 2009 06:58PM

Re: RE: Nginx feature request

Igor Sysoev April 22, 2009 03:16AM

Re: RE: Nginx feature request

Joe Bofh April 22, 2009 03:33AM

Re: RE: Nginx feature request

Igor Sysoev April 22, 2009 08:38AM

Re: RE: Nginx feature request

deltay April 21, 2009 09:56PM

Re: RE: Nginx feature request

Igor Sysoev April 22, 2009 02:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready