Nginx-0.6.29

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.

On 2008-3-18 22:21, Igor S. 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.

On Tue, Mar 18, 2008 at 10:41:40PM +0800, Cherife Li wrote:

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>

On 2008-3-18 22:47, Igor S. wrote:

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. :slight_smile:

Chinese guys always search, ask, search, ask, finally get it.
But don’t share, just tell everyone have got it…
Though I am Chinese, I don’t know why.
Someone say maybe because English is not our mother language, it’s not
easy
to describe something.
But in Chinese language, I also see this funny fact.
I think we should open mind to share result.
From Chinese proverb: my hands would also be fragrant when I send
people
flowers

2008/3/24, Gentoo [email protected]:

any examples?
thanks

Sorry for being a bit off topic on this maillist.

Hi, bianbian

Interesting comment. But I have to point out, I think you are going a
bit too far based on what you see from the replied from Cherife.I
believe Cherife is still searching and learning this new feature of
nginx, and that is why he did not follow up with more comments.

On the other hand, I agree with you on the general behavior of Chinese
society nowadays. I think it is all caused by the lack of intellectual
property protection. If you share something, some people just
shamelessly grab it and never say a word to express their thanks. In
some of worst cases, they might even laugh at your stupidity in
sharing it.

Things will get better for sure, and at least the new generation of
Chinese, like you and me, are realizing more and more of this problem,
right? :slight_smile:

-Liang

kingler from 72pines

2008/3/23 bianbian [email protected]:

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 03/24/08 10:36, bianbian wrote:

Chinese guys always search, ask, search, ask, finally get it.
But don’t share, just tell everyone have got it…

Yep, but not every Chinese, just few, IMHO.

Though I am Chinese, I don’t know why.
Someone say maybe because English is not our mother language, it’s not
easy to describe something.
But in Chinese language, I also see this funny fact.
I think we should open mind to share result.
From Chinese proverb: my hands would also be fragrant when I send
people flowers

OK, OK, we should stop here, all right? Here is nginx list.

2008/3/24, Gentoo <[email protected] mailto:[email protected]>:

any examples?
thanks

It’s me whom asked about this new google_perftools_profiles module.

I didn’t report any new issue, why?

I did get some info about this module, I believe that everyone could get
the
same or even more, for I’m not feeling so smart myself.

Besides, life is not easy, as in the mail signature of Gentoo
[email protected].
I must work hard, I have to deal with those dirty things. How about you?
And I don’t think I’m up on this module. I’m just a normal user, not a
code developer.
I need more time to learn about it.

What would you suggest me to report in this case? Continue asking?

Less complaint, more contribution. We’ll still remember you, for you’re
an hero then.

Sorry for my offing topic.
Comments on my words, not about nginx, if any, please reply directly to
me, not list.
Thanks.