nginx 1.2.0 is slower than 1.1.12?
Maxim Dounin
mdounin at mdounin.ru
Fri Apr 27 14:00:42 UTC 2012
Hello!
On Fri, Apr 27, 2012 at 09:08:45PM +0800, Delta Yeh wrote:
> 在 2012年4月27日 下午8:22,Maxim Dounin <mdounin at mdounin.ru> 写道:
> > Hello!
> >
> > On Fri, Apr 27, 2012 at 07:06:02PM +0800, Delta Yeh wrote:
> >
> >> Using built-in specs.
> >> Target: i486-linux-gnu
> >> Configured with: ../src/configure -v --with-pkgversion='Debian
> >> 4.3.5-4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
> >> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> >> --enable-shared --enable-multiarch --enable-linker-build-id
> >> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> >> --enable-threads=posix --enable-nls
> >> --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
> >> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
> >> --enable-mpfr --enable-targets=all --with-tune=generic
> >> --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
> >> --target=i486-linux-gnu
> >> Thread model: posix
> >> gcc version 4.3.5 (Debian 4.3.5-4)
> >>
> >>
> >>
> >>
> >> ./nginx -V
> >> nginx version: nginx/2.1.2.0
> >
> > This doesn't looks like vanilla nginx. Could you please test
> > vanilla one, without any patches?
> >
>
> It's an openresty like nginx bundle ,consist of modules for reverse proxy only.
> No thirdparty patch applied except the one "proxy_bind support variable".
> Maxim, I remember it is from you, :)
>
> The major 2 in version string means upstream keepalive feaure only .
Again: it's really good idea to test vanilla nginx, without any
patches and 3rd party modules, especially when debugging such
subtle problems. Even trivial patch might cause unspecified
behaviour e.g. if it applied incorrectly due to context code
changes. And the similar thing applies to 3rd party modules.
> >> built by gcc 4.3.5 (Debian 4.3.5-4)
> >> TLS SNI support enabled
> >> configure arguments: --prefix=/usr/local/nginx --pid-path=/var
> >> --with-cpu-opt=pentium4 --with-ipv6 --with-pcre=/usr/local/pcre
> >> --with-pcre-jit --without-http_autoindex_module
> >> --without-http_ssi_module --without-http_referer_module
> >> --without-http_userid_module --without-http_empty_gif_module
> >> --without-http_limit_req_module --without-http_browser_module
> >> --without-http_memcached_module --without-http_charset_module
> >> --without-http_split_clients_module --with-http_stub_status_module
> >> --with-http_ssl_module --with-http_realip_module
> >> --with-http_sub_module --with-http_geoip_module -
> >
> > The output looks truncated (note trailing "-"), is it?
> >
> > In any case, please provide sample of an actual gcc command as
> > used during compilation of nginx object files, it may contain
> > various flags not visible in "nginx -V" output.
> >
>
> The shell script to build nginx is :
I need a gcc command as shown during "make", like this:
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/nginx.o \
src/core/nginx.c
Maxim Dounin
More information about the nginx
mailing list