0.8.52 AIO problem

"Brane F. Gračnar" brane.gracnar at planet9.si
Fri Oct 8 20:45:08 MSD 2010


On 10/07/2010 05:25 PM, Maxim Dounin wrote:
> 
> Backtrace is mostly useless here as it shows trace to check, not 
> to the real problem. Though it shows that you may want to
> recompile again with lower optimization to simplify debugging 
> (note this "<value optimized out>" things).  I usually debug 
> with -O0 as it minimizes compiler artifacts.  For CPU-bound hosts 
> you may want to use -O1 instead.

Ok, nginx recompiled again :)

--- snip ---
nginx version: nginx/0.8.52
built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
TLS SNI support enabled
configure arguments: --with-cc-opt='-O0 -g' --prefix=/usr
--conf-path=/etc/nginx/nginx.conf --error-log-path=/tmp/nginx.error
--http-log-path=/tmp/nginx.access --pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock --user=daemon --group=daemon
--http-client-body-temp-path=/var/spool/nginx/client_body_temp
--http-proxy-temp-path=/var/spool/nginx/proxy_temp
--http-fastcgi-temp-path=/var/spool/nginx/fastcgi_temp --with-ipv6
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_dav_module
--with-http_flv_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_stub_status_module --with-mail --with-mail_ssl_module
--with-pcre --with-file-aio --with-debug
--- snip ---

Nginx configuration (only relevant parts, becouse only one vhost was
configured to use AIO):

--- snip ---
user www-data;
worker_processes 8;
worker_rlimit_nofile 100000;

error_log "/var/log/nginx/main-error.log" debug;
pid "/var/run/nginx.pid";

# debugging stuff...
#worker_rlimit_core  500M;
#working_directory "/tmp";
#debug_points abort;

events {
        worker_connections 8000;
}

server {
	listen 80;

        server_name host.example.org;
        server_name_in_redirect off;

        # document root...
        root "/webroot/host.example.org";

        # gzip disabled. Nothing to compress here.
        gzip off;
        gzip_static off;

        location / {
                autoindex off;
                fancyindex off;
                fancyindex_exact_size off;

                # AIO
		aio on;
		directio 1;

		# lots of rewrites...
		# lots of rewrites...
		# lots of rewrites...

		# this is stupid, but webapp needs this
                error_page 404 =404 "/meta/blank.gif";

                # Expires headers...
                expires 2y;
        }

        log_not_found off;
        access_log "/logs/nginx/vhost-maps-host.example.com.access"
combined;
        error_log "/logs/nginx/vhost-host.example.com.error" debug;
        ###################################################
}

--- snip ---

See attachments for all worker processes stacktraces.

Main server error log (700KB):
http://frost.ath.cx/.tmp/main-err.log.gz

Vhost error log (2.3MB):
http://frost.ath.cx/.tmp/vhost-err.log.gz

Hope this helps.

Best regards, Brane
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7115.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7116.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7117.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7118.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0003.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7119.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0004.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7120.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0005.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7121.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0006.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-core.7122.stacktrace
URL: <http://nginx.org/pipermail/nginx/attachments/20101008/f39fb248/attachment-0007.ksh>


More information about the nginx mailing list