Welcome! Log In Create A New Profile

Advanced

0.8.52 AIO problem

All files from this thread

File Name File Size   Posted by Date  
nginx_aio_opened_filedescriptors.png 41.8 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_status_rate.png 32.5 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_status_clients.png 29.7 KB open | download Brane F. Gračnar 10/07/2010 Read message
nginx_aio_vmstat_memory.png 46.7 KB open | download Brane F. Gračnar 10/07/2010 Read message
Brane F. Gračnar
October 07, 2010 06:16AM
Hello!

I'm using nginx for serving static content. Nginx is serving from a folder
containing millions of small files.

Becouse machine doesn't have lots of ram (2G) and becouse access pattern is
completely random VFS cache gets trashed.

That's why i tried aio + directio.

Configuration:

location / {
aio on;
directio 1;
}

It seems that everything works fine, vmstat reports smaller cache size, etc.
But number of opened filedescriptors on system grows and nginx status module
reports more and more connections in state "writing".

Nginx main error contains tons of familiar messages:

--- snip ---
2010/10/06 17:48:42 [alert] 1589#0: open socket #307 left in connection 128
2010/10/06 17:48:42 [alert] 1589#0: open socket #313 left in connection 131
2010/10/06 17:48:42 [alert] 1589#0: open socket #297 left in connection 132
2010/10/06 17:48:42 [alert] 1589#0: open socket #312 left in connection 133
2010/10/06 17:48:42 [alert] 1589#0: open socket #364 left in connection 134
2010/10/06 17:48:42 [alert] 1589#0: open socket #394 left in connection 136
2010/10/06 17:48:42 [alert] 1589#0: open socket #321 left in connection 138
2010/10/06 17:48:42 [alert] 1589#0: open socket #320 left in connection 139
2010/10/06 17:48:42 [alert] 1589#0: open socket #260 left in connection 141
2010/10/06 17:48:42 [alert] 1589#0: open socket #336 left in connection 145
2010/10/06 17:48:42 [alert] 1589#0: open socket #340 left in connection 148
2010/10/06 17:48:42 [alert] 1589#0: open socket #347 left in connection 149
--- snip ---

Am i doing something wrong?

nginx version: nginx/0.8.52
TLS SNI support enabled
configure arguments: --with-cc-opt='-O2 -pipe -fomit-frame-pointer -funroll-
loops' --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 --add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.52/modules/nginx_mod_h264_streaming-2.2.7
--add-module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.52/modules/ngx-
fancyindex --add-
module=/export/tmp/pkgcompile/nginx/work/nginx-0.8.52/modules/ngx_http_log_request_speed

Linux 2.6.35, x86_64, Ubuntu 10.04LTS.

Best regards, Brane

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

0.8.52 AIO problem

Brane F. Gračnar October 07, 2010 06:16AM

Re: 0.8.52 AIO problem

Maxim Dounin October 07, 2010 07:48AM

Re: 0.8.52 AIO problem

Brane F. Gračnar October 07, 2010 08:24AM

Re: 0.8.52 AIO problem Attachments

Brane F. Gračnar October 07, 2010 10:34AM

Re: 0.8.52 AIO problem

Maxim Dounin October 07, 2010 11:30AM

Re: 0.8.52 AIO problem

"Brane F. Gračnar" October 08, 2010 12:52PM

Re: 0.8.52 AIO problem

Maxim Dounin October 08, 2010 02:24PM

Re: 0.8.52 AIO problem

Maxim Dounin October 08, 2010 10:50PM

A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 04:54AM

Re: A new way called DWS to run php script on nginx 0.8.x !

lhmwzy October 09, 2010 05:08AM

Re: A new way called DWS to run php script on nginx 0.8.x !

mike October 09, 2010 05:30AM

Re: A new way called DWS to run php script on nginx 0.8.x !

Piotr Sikora October 09, 2010 06:24AM

Re: A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 06:46AM

Re: A new way called DWS to run php script on nginx 0.8.x !

Igor Sysoev October 09, 2010 07:32AM

Re: A new way called DWS to run php script on nginx 0.8.x !

hightman October 09, 2010 11:58PM

Re: 0.8.52 AIO problem

Maxim Dounin October 11, 2010 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready