nginx-0.6.29

Igor Sysoev is at rambler-co.ru
Mon Mar 24 12:18:04 MSK 2008


On Mon, Mar 24, 2008 at 10:04:40AM +0800, Gentoo wrote:

> any examples?
> thanks

Here is head of pprof output of some of our servers:

   19835   9.8%   9.8%    19835   9.8% longest_match
   19630   9.7%  19.5%    59989  29.6% deflate_fast
   12436   6.1%  25.6%    12436   6.1% compress_block
   12158   6.0%  31.6%   100206  49.4% ngx_http_charset_body_filter
   11852   5.8%  37.4%    11852   5.8% writev
   10940   5.4%  42.8%    10940   5.4% sendfile
    7252   3.6%  46.4%   122553  60.4% ngx_http_ssi_body_filter
    6065   3.0%  49.4%     6065   3.0% kevent
    5988   3.0%  52.4%     5988   3.0% close
    5023   2.5%  54.8%     5023   2.5% connect
    4574   2.3%  57.1%     4574   2.3% ngx_http_parse_header_line
    3909   1.9%  59.0%     3909   1.9% _pread
    3797   1.9%  60.9%     3797   1.9% recvfrom
    3790   1.9%  62.8%     3790   1.9% crc32
    3569   1.8%  64.5%     3569   1.8% memcpy
    3384   1.7%  66.2%     3384   1.7% readv
    3129   1.5%  67.7%     3129   1.5% fill_window
    2898   1.4%  69.2%     2898   1.4% memset
    2750   1.4%  70.5%     2847   1.4% _malloc_prefork
    2701   1.3%  71.9%     2701   1.3% gettimeofday
    2328   1.1%  73.0%     2365   1.2% ngx_http_core_find_location
    2099   1.0%  74.0%     2099   1.0% socket

gzipping takes about 30%,
system operations on behalf of the worker (writev, sendfile, kevent, close,
connect, etc) takes about 20%,
charset filter takes about 6%,
ssi filter takes about 3.6%.

In 0.6.29 the charset filter was optimized and now it takes 2% less.

Look
http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html#pprof
how to use pprof.

> On Tue, Mar 18, 2008 at 11:15 PM, Cherife Li <cherife at dotimes.com> wrote:
> 
> > On 2008-3-18 22:47, Igor Sysoev wrote:
> > > On Tue, Mar 18, 2008 at 10:41:40PM +0800, Cherife Li wrote:
> > >
> > >> On 2008-3-18 22:21, Igor Sysoev wrote:
> > >>> Changes with nginx 0.6.29                                        18
> > Mar
> > >>> 2008
> > >>>
> > >>>    *) Feature: the ngx_google_perftools_module.
> > >>>
> > >>>    *) Bugfix: the ngx_http_perl_module could be not built on 64-bit
> > >>>       platforms; bug appeared in 0.6.27.
> > >>>
> > >>>
> > >> So what is ngx_google_perftools_module?
> > >> I found nothing about it in the wiki.
> > >
> > > The module enable google_perftools profiler for workers.
> > >
> > > ./configure --with-google_perftools_module
> > >
> > > nginx.conf:
> > >
> > > google_perftools_profiles  /path/to/profile;
> > >
> > > profiles will be in /path/to/profile.<worker_pid>
> > >
> > >
> > Got it.
> > I'm looking into it on google.
> > Thanks, Igor. :-)
> >
> > --
> > Rgds,
> > Cherife.
> >
> >
> 
> 
> -- 
> Life is hard

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list