nginx 1.2.0 is slower than 1.1.12?
Delta Yeh
delta.yeh at gmail.com
Fri Apr 27 13:08:45 UTC 2012
在 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 .
>> 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 :
DEPLOY_TARGET="/home/ngxproxy"
INSTALL_DIR="/home/ngxproxy"
# tell nginx's build system where to find lua:
#export LUA_LIB=/usr/local/lib
#export LUA_INC=/usr/local/include
#export LUA_LIB=/usr/lib
#export LUA_INC=/usr/include/lua5.1
# or tell where to find LuaJIT when you want to use JIT instead
export LUAJIT_LIB=$DEPLOY_TARGET/lib
export LUAJIT_INC=$DEPLOY_TARGET/include/luajit-2.0
./configure --prefix=$INSTALL_DIR \
--with-cpu-opt=pentium4 \
--with-ipv6 \
--with-pcre=$DEPLOY_TARGET/pcre \
--with-pcre-jit \
--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 \
--add-module=src/http/modules/ngx_devel_kit \
--add-module=src/http/modules/lua-nginx \
--add-module=src/http/modules/headers_more \
--add-module=src/http/modules/substitute \
--add-module=src/http/modules/ngx_iconv
make
make install
> Maxim Dounin
>
>>
>>
>> 在 2012年4月27日 下午6:57,Maxim Dounin <mdounin at mdounin.ru> 写道:
>> > Hello!
>> >
>> > On Fri, Apr 27, 2012 at 06:51:04PM +0800, Delta Yeh wrote:
>> >
>> >> After revert svn r4577 of 1.2.0 , I get almost the same benchmark
>> >> result with 1.2.0 and 1.1.17.
>> >>
>> >> So it seems r4577 descrease nginx 1.2.0 performance by 30-40%( a lot
>> >> of connect timeout reported by loadrunner) in my test lab.
>> >>
>> >> nginx box OS is debian squeeze 32bit, CPU is intel core2 .
>> >
>> > Which compiler do you use? Which compiler flags used during
>> > compilation?
>> >
>> > Maxim Dounin
>> >
>> > _______________________________________________
>> > nginx mailing list
>> > nginx at nginx.org
>> > http://mailman.nginx.org/mailman/listinfo/nginx
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list