Welcome! Log In Create A New Profile

Advanced

Memory usage with aio

Андрей Василишин
March 12, 2011 05:58PM
Всем привет!

Заметил, что после включения aio нгинкс стал больше потреблять памяти
при тех же нагрузках.


Нгикс до аио:
nginx -V
nginx version: nginx/0.8.53
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-scgi-temp-path=/var/lib/nginx/scgi
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-http_dav_module --with-http_flv_module
--with-http_geoip_module --with-http_gzip_static_module
--with-http_image_filter_module --with-http_realip_module
--with-http_stub_status_module --with-http_ssl_module
--with-http_sub_module --with-http_xslt_module --with-ipv6
--with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl
--with-mail --with-mail_ssl_module
--add-module=/tmp/buildd/nginx-0.8.53/modules/nginx-upstream-fair
--add-module=/tmp/buildd/nginx-0.8.53/modules/nginx-echo


location /flv {
root /var/www/;
try_files /XXXXX$uri
/YYYYY$uri

=404;
internal;
flv;
output_buffers 1 1m;
# aio on;
# directio 4m;
# set $limit_rate 256k;

}

Нгинкс с аио:

# nginx -V
nginx version: nginx/0.8.54
TLS SNI support enabled
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-scgi-temp-path=/var/lib/nginx/scgi
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-file-aio --with-http_addition_module
--with-http_dav_module --with-http_flv_module --with-http_geoip_module
--with-http_gzip_static_module --with-http_image_filter_module
--with-http_perl_module --with-http_random_index_module
--with-http_realip_module --with-http_secure_link_module
--with-http_stub_status_module --with-http_ssl_module
--with-http_sub_module --with-http_xslt_module --with-ipv6
--with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl
--with-mail --with-mail_ssl_module
--add-module=/build/buildd/nginx-0.8.54/debian/modules/nginx-development-kit
--add-module=/build/buildd/nginx-0.8.54/debian/modules/nginx-upstream-fair
--add-module=/build/buildd/nginx-0.8.54/debian/modules/nginx-echo
--add-module=/build/buildd/nginx-0.8.54/debian/modules/nginx-lua
--add-module=/build/buildd/nginx-0.8.54/debian/modules/nginx-push-0.692

location /flv {
root /var/www/;
try_files /XXXXX$uri
/YYYYY$uri

=404;
internal;
flv;
output_buffers 1 1m;
aio on;
directio 4m;
# set $limit_rate 256k;

}


В конфиге по сути добавилось 2 строчки:
aio on;
directio 4m;

Модулей кроме flv и proxy в конфиге никаких
больше не использую.
По графикам видно, после пробела, когда было включено аио при тех же
нагрузках стало больше потребляться памяти, почему?

--
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Attachments:
open | download - memory-usage.png (41.8 KB)
open | download - nginx.png (61.2 KB)
Subject Author Posted

Memory usage with aio Attachments

Андрей Василишин March 12, 2011 05:58PM

Re: Memory usage with aio

Alex Vorona March 13, 2011 04:40AM

Re: Memory usage with aio

Андрей Василишин March 13, 2011 05:32AM

Re: Memory usage with aio

Maxim Dounin March 14, 2011 06:28AM

Re: Memory usage with aio

Андрей Василишин March 14, 2011 03:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 240
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready